	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5820_update_hw
_ad5820_update_hw:                      ## @ad5820_update_hw
	.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
	movl	24(%rdi), %edi
	callq	_RAMP_US_TO_CODE
	cmpq	$0, 16(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_AD5820_RAMP_MODE_LINEAR@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_AD5820_RAMP_MODE_64_16@GOTPCREL(%rip), %rcx
LBB0_3:
	orl	(%rcx), %eax
	movl	(%rbx), %edx
	movq	_AD5820_DAC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_AD5820_POWER_DOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	orl	%ecx, %edx
	orl	%edx, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ad5820_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AD5820_RAMP_MODE_64_16,4,2     ## @AD5820_RAMP_MODE_64_16
	.comm	_AD5820_RAMP_MODE_LINEAR,4,2    ## @AD5820_RAMP_MODE_LINEAR
	.comm	_AD5820_DAC_SHIFT,4,2           ## @AD5820_DAC_SHIFT
	.comm	_AD5820_POWER_DOWN,4,2          ## @AD5820_POWER_DOWN
	.no_dead_strip	_ad5820_update_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5820_update_hw
_ad5820_update_hw:                      ; @ad5820_update_hw
	.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
	ldr	w0, [x0, #24]
	bl	_RAMP_US_TO_CODE
Lloh0:
	adrp	x8, _AD5820_RAMP_MODE_64_16@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD5820_RAMP_MODE_64_16@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AD5820_RAMP_MODE_LINEAR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AD5820_RAMP_MODE_LINEAR@GOTPAGEOFF]
	ldp	x11, x10, [x19, #8]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh4:
	adrp	x9, _AD5820_DAC_SHIFT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AD5820_DAC_SHIFT@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh6:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w8, w9
Lloh7:
	adrp	x9, _AD5820_POWER_DOWN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AD5820_POWER_DOWN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w1, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ad5820_write
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AD5820_RAMP_MODE_64_16,4,2     ; @AD5820_RAMP_MODE_64_16
	.comm	_AD5820_RAMP_MODE_LINEAR,4,2    ; @AD5820_RAMP_MODE_LINEAR
	.comm	_AD5820_DAC_SHIFT,4,2           ; @AD5820_DAC_SHIFT
	.comm	_AD5820_POWER_DOWN,4,2          ; @AD5820_POWER_DOWN
	.no_dead_strip	_ad5820_update_hw
.subsections_via_symbols
