	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_command
_cs_hsi_command:                        ## @cs_hsi_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_local_bh_disable
	movq	_TARGET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_cs_hsi_write_on_control
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_CS_CMD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_CS_TX_DATA_READY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_CS_PARAM_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_cs_hsi_write_on_data
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	xorl	%eax, %eax
	callq	_local_bh_enable
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_MASK,4,2                ## @TARGET_MASK
	.comm	_CS_CMD_MASK,4,2                ## @CS_CMD_MASK
	.comm	_CS_TX_DATA_READY,4,2           ## @CS_TX_DATA_READY
	.comm	_CS_PARAM_MASK,4,2              ## @CS_PARAM_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cs_hsi_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs_hsi_command
_cs_hsi_command:                        ; @cs_hsi_command
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_local_bh_disable
Lloh0:
	adrp	x8, _TARGET_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TARGET_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w20
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_cs_hsi_write_on_control
	mov	x19, x0
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _CS_CMD_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CS_CMD_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh6:
	adrp	x9, _CS_TX_DATA_READY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CS_TX_DATA_READY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _CS_PARAM_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CS_PARAM_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w1, w8, w20
	mov	x0, x19
	bl	_cs_hsi_write_on_data
	mov	x19, x0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	bl	_local_bh_enable
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_MASK,4,2                ; @TARGET_MASK
	.comm	_CS_CMD_MASK,4,2                ; @CS_CMD_MASK
	.comm	_CS_TX_DATA_READY,4,2           ; @CS_TX_DATA_READY
	.comm	_CS_PARAM_MASK,4,2              ; @CS_PARAM_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cs_hsi_command
.subsections_via_symbols
