	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_power_off
_s5k5baf_power_off:                     ## @s5k5baf_power_off
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdi)
	movq	$0, 32(%rdi)
	movq	_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_s5k5baf_gpio_assert
	movq	_STBY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_s5k5baf_gpio_assert
	movl	8(%rbx), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_2:
	movq	_S5K5BAF_NUM_SUPPLIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_regulator_bulk_disable
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_err
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RST,4,2                        ## @RST
	.comm	_STBY,4,2                       ## @STBY
	.comm	_S5K5BAF_NUM_SUPPLIES,4,2       ## @S5K5BAF_NUM_SUPPLIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to disable regulators\n"

	.no_dead_strip	_s5k5baf_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_power_off
_s5k5baf_power_off:                     ; @s5k5baf_power_off
	.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	x19, x0
	stp	xzr, xzr, [x0, #16]
	str	xzr, [x0, #32]
Lloh0:
	adrp	x8, _RST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_s5k5baf_gpio_assert
Lloh3:
	adrp	x8, _STBY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STBY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_s5k5baf_gpio_assert
	ldr	w0, [x19, #8]
	bl	_IS_ERR
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
LBB0_2:
Lloh6:
	adrp	x8, _S5K5BAF_NUM_SUPPLIES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5K5BAF_NUM_SUPPLIES@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_regulator_bulk_disable
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RST,4,2                        ; @RST
	.comm	_STBY,4,2                       ; @STBY
	.comm	_S5K5BAF_NUM_SUPPLIES,4,2       ; @S5K5BAF_NUM_SUPPLIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to disable regulators\n"

	.no_dead_strip	_s5k5baf_power_off
.subsections_via_symbols
