	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_powerdown
_si4713_powerdown:                      ## @si4713_powerdown
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_SI4713_PWDN_NRESP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	_SI4713_CMD_POWER_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	_DEFAULT_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	%eax, %r9d
	pushq	%r10
	callq	_si4713_send_command
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_debug@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	16(%r14), %r15
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movq	8(%r14), %rax
	xorl	%edi, %edi
	callq	*(%rax)
	movq	_POWER_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SI4713_PWDN_NRESP,4,2          ## @SI4713_PWDN_NRESP
	.comm	_SI4713_CMD_POWER_DOWN,4,2      ## @SI4713_CMD_POWER_DOWN
	.comm	_DEFAULT_TIMEOUT,4,2            ## @DEFAULT_TIMEOUT
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Power down response: 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device in reset mode\n"

	.comm	_POWER_OFF,8,3                  ## @POWER_OFF
	.no_dead_strip	_si4713_powerdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_powerdown
_si4713_powerdown:                      ; @si4713_powerdown
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _SI4713_PWDN_NRESP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SI4713_PWDN_NRESP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _SI4713_CMD_POWER_DOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SI4713_CMD_POWER_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x5, x0
Lloh11:
	adrp	x8, _DEFAULT_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DEFAULT_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	mov	w3, #0
	mov	x4, x20
	bl	_si4713_send_command
	cbnz	w0, LBB0_4
; %bb.2:
Lloh14:
	adrp	x22, _debug@GOTPAGE
Lloh15:
	ldr	x22, [x22, _debug@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x21, x19, #16
	ldr	w8, [x20]
	str	x8, [sp, #-16]!
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_v4l2_dbg
	add	sp, sp, #16
	ldr	w1, [x22]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_v4l2_dbg
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w0, #0
	blr	x8
	mov	w0, #0
Lloh20:
	adrp	x8, _POWER_OFF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _POWER_OFF@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SI4713_PWDN_NRESP,4,2          ; @SI4713_PWDN_NRESP
	.comm	_SI4713_CMD_POWER_DOWN,4,2      ; @SI4713_CMD_POWER_DOWN
	.comm	_DEFAULT_TIMEOUT,4,2            ; @DEFAULT_TIMEOUT
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Power down response: 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device in reset mode\n"

	.comm	_POWER_OFF,8,3                  ; @POWER_OFF
	.no_dead_strip	_si4713_powerdown
.subsections_via_symbols
