	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5064_request_vref
_ad5064_request_vref:                   ## @ad5064_request_vref
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_ad5064_num_vref
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ad5064_vref_name
	movq	8(%r15), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	incq	%rbx
	movq	%r15, %rdi
	callq	_ad5064_num_vref
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	16(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get_optional
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.5:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_PTR_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_8
## %bb.6:
	movl	$1, (%r15)
	movq	_AD5064_CONFIG_INT_VREF_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ad5064_set_config
	movl	%eax, %ebx
	movl	$0, %eax
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movl	%ebx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_ad5064_num_vref
	movq	8(%r15), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_regulator_bulk_get        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AD5064_CONFIG_INT_VREF_ENABLE,4,2 ## @AD5064_CONFIG_INT_VREF_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to enable internal vref: %d\n"

	.no_dead_strip	_ad5064_request_vref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5064_request_vref
_ad5064_request_vref:                   ; @ad5064_request_vref
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_ad5064_num_vref
	cbz	w0, LBB0_3
; %bb.1:
	mov	x21, #0
	mov	w22, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ad5064_vref_name
	ldr	x8, [x20, #8]
	str	w0, [x8, x22]
	add	x21, x21, #1
	mov	x0, x20
	bl	_ad5064_num_vref
	add	x22, x22, #8
	cmp	x21, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get_optional
	ldr	x8, [x20, #8]
	str	w0, [x8]
	bl	_IS_ERR
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_PTR_ERR
	mov	x21, x0
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
; %bb.6:
	mov	w8, #1
	str	w8, [x20]
Lloh5:
	adrp	x8, _AD5064_CONFIG_INT_VREF_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AD5064_CONFIG_INT_VREF_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ad5064_set_config
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.7:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_ad5064_num_vref
	mov	x1, x0
	ldr	x2, [x20, #8]
	mov	x0, x19
	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
	b	_devm_regulator_bulk_get
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AD5064_CONFIG_INT_VREF_ENABLE,4,2 ; @AD5064_CONFIG_INT_VREF_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to enable internal vref: %d\n"

	.no_dead_strip	_ad5064_request_vref
.subsections_via_symbols
