	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5758_set_dc_dc_conv_mode
_ad5758_set_dc_dc_conv_mode:            ## @ad5758_set_dc_dc_conv_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_AD5758_DCDC_MODE_PPC_CURRENT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_AD5758_ADC_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_AD5758_ADC_CONFIG_PPC_BUF_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$1, %edi
	callq	_AD5758_ADC_CONFIG_PPC_BUF_EN
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_ad5758_spi_write_mask
	testl	%eax, %eax
	js	LBB0_5
LBB0_2:
	movq	_AD5758_DCDC_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_AD5758_DCDC_CONFIG1_DCDC_MODE_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_AD5758_DCDC_CONFIG1_DCDC_MODE_MODE
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_ad5758_spi_write_mask
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	_AD5758_DCDC_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AD5758_DCDC_CONFIG2_BUSY_3WI_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_ad5758_wait_for_task_complete
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	%r14d, (%r13)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD5758_DCDC_MODE_PPC_CURRENT,4,2 ## @AD5758_DCDC_MODE_PPC_CURRENT
	.comm	_AD5758_ADC_CONFIG,4,2          ## @AD5758_ADC_CONFIG
	.comm	_AD5758_ADC_CONFIG_PPC_BUF_MSK,4,2 ## @AD5758_ADC_CONFIG_PPC_BUF_MSK
	.comm	_AD5758_DCDC_CONFIG1,4,2        ## @AD5758_DCDC_CONFIG1
	.comm	_AD5758_DCDC_CONFIG1_DCDC_MODE_MSK,4,2 ## @AD5758_DCDC_CONFIG1_DCDC_MODE_MSK
	.comm	_AD5758_DCDC_CONFIG2,4,2        ## @AD5758_DCDC_CONFIG2
	.comm	_AD5758_DCDC_CONFIG2_BUSY_3WI_MSK,4,2 ## @AD5758_DCDC_CONFIG2_BUSY_3WI_MSK
	.no_dead_strip	_ad5758_set_dc_dc_conv_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5758_set_dc_dc_conv_mode
_ad5758_set_dc_dc_conv_mode:            ; @ad5758_set_dc_dc_conv_mode
	.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
Lloh0:
	adrp	x8, _AD5758_DCDC_MODE_PPC_CURRENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD5758_DCDC_MODE_PPC_CURRENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AD5758_ADC_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD5758_ADC_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _AD5758_ADC_CONFIG_PPC_BUF_MSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AD5758_ADC_CONFIG_PPC_BUF_MSK@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	w0, #1
	bl	_AD5758_ADC_CONFIG_PPC_BUF_EN
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_ad5758_spi_write_mask
	tbnz	w0, #31, LBB0_5
LBB0_2:
Lloh9:
	adrp	x8, _AD5758_DCDC_CONFIG1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AD5758_DCDC_CONFIG1@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _AD5758_DCDC_CONFIG1_DCDC_MODE_MSK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AD5758_DCDC_CONFIG1_DCDC_MODE_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_AD5758_DCDC_CONFIG1_DCDC_MODE_MODE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_ad5758_spi_write_mask
	tbnz	w0, #31, LBB0_5
; %bb.3:
Lloh15:
	adrp	x8, _AD5758_DCDC_CONFIG2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AD5758_DCDC_CONFIG2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _AD5758_DCDC_CONFIG2_BUSY_3WI_MSK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AD5758_DCDC_CONFIG2_BUSY_3WI_MSK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ad5758_wait_for_task_complete
	tbnz	w0, #31, LBB0_5
; %bb.4:
	str	w19, [x20]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AD5758_DCDC_MODE_PPC_CURRENT,4,2 ; @AD5758_DCDC_MODE_PPC_CURRENT
	.comm	_AD5758_ADC_CONFIG,4,2          ; @AD5758_ADC_CONFIG
	.comm	_AD5758_ADC_CONFIG_PPC_BUF_MSK,4,2 ; @AD5758_ADC_CONFIG_PPC_BUF_MSK
	.comm	_AD5758_DCDC_CONFIG1,4,2        ; @AD5758_DCDC_CONFIG1
	.comm	_AD5758_DCDC_CONFIG1_DCDC_MODE_MSK,4,2 ; @AD5758_DCDC_CONFIG1_DCDC_MODE_MSK
	.comm	_AD5758_DCDC_CONFIG2,4,2        ; @AD5758_DCDC_CONFIG2
	.comm	_AD5758_DCDC_CONFIG2_BUSY_3WI_MSK,4,2 ; @AD5758_DCDC_CONFIG2_BUSY_3WI_MSK
	.no_dead_strip	_ad5758_set_dc_dc_conv_mode
.subsections_via_symbols
