	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si2168_cmd_execute
_si2168_cmd_execute:                    ## @si2168_cmd_execute
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	(%r12), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.1:
	movq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_i2c_master_send
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.2:
	cmpl	(%r12), %ebx
	jne	LBB0_3
LBB0_5:
	cmpl	$0, 16(%r12)
	je	LBB0_17
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movl	$70, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r13
	addq	%rbx, %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_time_after
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rsi
	movl	16(%r12), %edx
	movq	%r15, %rdi
	callq	_i2c_master_recv
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	16(%r12), %ebx
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rax
	testb	$-128, (%rax)
	je	LBB0_7
LBB0_14:
	movq	(%r14), %rdi
	callq	_jiffies_to_msecs
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_jiffies_to_msecs
	subl	%eax, %ebx
	addl	$70, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
	movq	8(%r12), %rax
	movl	(%rax), %eax
	testb	$64, %al
	jne	LBB0_10
## %bb.15:
	testb	$-128, %al
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_17
## %bb.16:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_17:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_3:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_10:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd execution took %d ms\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.comm	_TIMEOUT,4,2                    ## @TIMEOUT
	.no_dead_strip	_si2168_cmd_execute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si2168_cmd_execute
_si2168_cmd_execute:                    ; @si2168_cmd_execute
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
	bl	_mutex_lock
	ldr	w2, [x21]
	cbz	w2, LBB0_3
; %bb.1:
	ldr	x1, [x21, #8]
	mov	x0, x19
	bl	_i2c_master_send
	mov	x22, x0
	tbnz	w0, #31, LBB0_14
; %bb.2:
	ldr	w8, [x21]
	cmp	w22, w8
	b.ne	LBB0_12
LBB0_3:
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_15
; %bb.4:
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x22, [x24]
	mov	w0, #70
	bl	_msecs_to_jiffies
	add	x23, x0, x22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	mov	x1, x23
	bl	_time_after
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x21, #8]
	ldr	w2, [x21, #16]
	mov	x0, x19
	bl	_i2c_master_recv
	mov	x22, x0
	tbnz	w0, #31, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x21, #16]
	cmp	w22, w8
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #8]
	ldrb	w8, [x8]
	tbz	w8, #7, LBB0_5
LBB0_9:
	ldr	x0, [x24]
	bl	_jiffies_to_msecs
	mov	x22, x0
	mov	x0, x23
	bl	_jiffies_to_msecs
	sub	w8, w22, w0
	add	w2, w8, #70
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	tbnz	w8, #6, LBB0_12
; %bb.10:
	tbnz	w8, #7, LBB0_15
; %bb.11:
Lloh4:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x20
	bl	_mutex_unlock
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_dbg
	b	LBB0_16
LBB0_15:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w22, #0
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd execution took %d ms\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.comm	_TIMEOUT,4,2                    ; @TIMEOUT
	.no_dead_strip	_si2168_cmd_execute
.subsections_via_symbols
