	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5c73m3_set_af_softlanding
_s5c73m3_set_af_softlanding:            ## @s5c73m3_set_af_softlanding
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %r12
	movq	_COMM_AF_SOFTLANDING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_COMM_AF_SOFTLANDING_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_s5c73m3_isp_command
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	(%rbx), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_s5c73m3_isp_comm_result
	testl	%eax, %eax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	js	LBB0_2
## %bb.3:
	movq	-56(%rbp), %rsi
	movq	_COMM_AF_SOFTLANDING_RES_COMPLETE@GOTPCREL(%rip), %r13
	leaq	L_.str.2(%rip), %r15
	cmpq	(%r13), %rsi
	jne	LBB0_9
## %bb.4:
	movl	%eax, %ebx
	movq	%r15, %r13
	movq	_jiffies@GOTPCREL(%rip), %r15
	jmp	LBB0_15
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l2_info
	jmp	LBB0_16
LBB0_2:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_9:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	$101, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	decl	%r12d
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$25, %edi
	callq	_msleep
	movq	%rbx, %r14
	movl	(%rbx), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %rdx
	callq	_s5c73m3_isp_comm_result
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rcx
	cmpq	(%r13), %rcx
	movq	%r14, %rbx
	jne	LBB0_10
## %bb.7:
	movl	%eax, %ebx
	movq	%r15, %r13
	jmp	LBB0_8
LBB0_11:
	movq	_ETIME@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.3(%rip), %r13
LBB0_8:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	_jiffies@GOTPCREL(%rip), %r15
	jmp	LBB0_15
LBB0_13:
	movl	%eax, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	_jiffies@GOTPCREL(%rip), %r15
LBB0_14:
	leaq	L_.str.1(%rip), %r13
LBB0_15:
	movq	(%r15), %rdi
	subq	%r12, %rdi
	callq	_jiffies_to_msecs
	leaq	L_.str.4(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_v4l2_info
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_COMM_AF_SOFTLANDING,4,2        ## @COMM_AF_SOFTLANDING
	.comm	_COMM_AF_SOFTLANDING_ON,4,2     ## @COMM_AF_SOFTLANDING_ON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AF soft-landing failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed"

	.comm	_COMM_AF_SOFTLANDING_RES_COMPLETE,8,3 ## @COMM_AF_SOFTLANDING_RES_COMPLETE
L_.str.2:                               ## @.str.2
	.asciz	"succeeded"

	.comm	_ETIME,4,2                      ## @ETIME
L_.str.3:                               ## @.str.3
	.asciz	"timed out"

L_.str.4:                               ## @.str.4
	.asciz	"AF soft-landing %s after %dms\n"

	.no_dead_strip	_s5c73m3_set_af_softlanding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5c73m3_set_af_softlanding
_s5c73m3_set_af_softlanding:            ; @s5c73m3_set_af_softlanding
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x22, [x21]
Lloh2:
	adrp	x23, _COMM_AF_SOFTLANDING@GOTPAGE
Lloh3:
	ldr	x23, [x23, _COMM_AF_SOFTLANDING@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh4:
	adrp	x8, _COMM_AF_SOFTLANDING_ON@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COMM_AF_SOFTLANDING_ON@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_s5c73m3_isp_command
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w1, [x23]
	add	x2, sp, #24
	mov	x0, x19
	bl	_s5c73m3_isp_comm_result
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x25, _COMM_AF_SOFTLANDING_RES_COMPLETE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _COMM_AF_SOFTLANDING_RES_COMPLETE@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh9:
	adrp	x24, l_.str.2@PAGE
Lloh10:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_4:
	mov	x20, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_5:
Lloh13:
	adrp	x24, l_.str.1@PAGE
Lloh14:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_6:
	mov	w26, #101
Lloh15:
	adrp	x27, l_.str.1@PAGE
Lloh16:
	add	x27, x27, l_.str.1@PAGEOFF
Lloh17:
	adrp	x24, l_.str.2@PAGE
Lloh18:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	subs	w26, w26, #1
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #25
	bl	_msleep
	ldr	w1, [x23]
	add	x2, sp, #24
	mov	x0, x19
	bl	_s5c73m3_isp_comm_result
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_7
	b	LBB0_12
LBB0_10:
Lloh19:
	adrp	x8, _ETIME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
Lloh22:
	adrp	x24, l_.str.3@PAGE
Lloh23:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	x24, x27
LBB0_12:
	ldr	x8, [x21]
	sub	x0, x8, x22
	bl	_jiffies_to_msecs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x24, x0, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_v4l2_info
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_COMM_AF_SOFTLANDING,4,2        ; @COMM_AF_SOFTLANDING
	.comm	_COMM_AF_SOFTLANDING_ON,4,2     ; @COMM_AF_SOFTLANDING_ON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AF soft-landing failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed"

	.comm	_COMM_AF_SOFTLANDING_RES_COMPLETE,8,3 ; @COMM_AF_SOFTLANDING_RES_COMPLETE
l_.str.2:                               ; @.str.2
	.asciz	"succeeded"

	.comm	_ETIME,4,2                      ; @ETIME
l_.str.3:                               ; @.str.3
	.asciz	"timed out"

l_.str.4:                               ; @.str.4
	.asciz	"AF soft-landing %s after %dms\n"

	.no_dead_strip	_s5c73m3_set_af_softlanding
.subsections_via_symbols
