	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_configure_regulators
_s5k5baf_configure_regulators:          ## @s5k5baf_configure_regulators
	.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
	movq	%rdi, %rbx
	addq	$8, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	_S5K5BAF_NUM_SUPPLIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movq	_s5k5baf_supply_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdi,4), %esi
	movl	%esi, (%rdx,%rdi,4)
	incq	%rdi
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdi
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	(%rbx), %rdx
LBB0_4:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_devm_regulator_bulk_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5K5BAF_NUM_SUPPLIES,4,2       ## @S5K5BAF_NUM_SUPPLIES
	.comm	_s5k5baf_supply_names,8,3       ## @s5k5baf_supply_names
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get regulators\n"

	.no_dead_strip	_s5k5baf_configure_regulators
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_configure_regulators
_s5k5baf_configure_regulators:          ; @s5k5baf_configure_regulators
	.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, x0
	add	x0, x0, #8
	bl	_v4l2_get_subdevdata
	mov	x19, x0
Lloh0:
	adrp	x8, _S5K5BAF_NUM_SUPPLIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5K5BAF_NUM_SUPPLIES@GOTPAGEOFF]
	ldr	w1, [x8]
	cmp	w1, #0
	b.le	LBB0_3
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _s5k5baf_supply_names@GOTPAGE
Lloh3:
	ldr	x10, [x10, _s5k5baf_supply_names@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldr	x2, [x20]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x11, x9, #2
	ldr	w12, [x10, x11]
	str	w12, [x2, x11]
	add	x9, x9, #1
	ldrsw	x1, [x8]
	cmp	x9, x1
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	ldr	x2, [x20]
LBB0_4:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_devm_regulator_bulk_get
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_S5K5BAF_NUM_SUPPLIES,4,2       ; @S5K5BAF_NUM_SUPPLIES
	.comm	_s5k5baf_supply_names,8,3       ; @s5k5baf_supply_names
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get regulators\n"

	.no_dead_strip	_s5k5baf_configure_regulators
.subsections_via_symbols
