	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpot_read_spi
_dpot_read_spi:                         ## @dpot_read_spi
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	_DPOT_ADDR_EEPROM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_DPOT_ADDR_CMD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	%rcx, %rdx
	testq	%rsi, %rdx
	je	LBB0_1
## %bb.12:
	xorl	%esi, %esi
	testq	%rax, %rcx
	je	LBB0_15
## %bb.13:
	movq	_DPOT_SPI_READ_EEPROM@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
LBB0_15:
	movl	(%r14), %eax
	movq	_F_SPI_16BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.19:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dpot_read_r8d8                 ## TAILCALL
LBB0_1:
	movq	_F_RDACS_WONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rcx
	movq	_DPOT_RDAC_MASK@GOTPCREL(%rip), %rdx
	andq	(%rdx), %rax
	movl	(%rcx,%rax,4), %ebx
	jmp	LBB0_18
LBB0_16:
	movq	_F_SPI_24BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.20:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dpot_read_r8d16                ## TAILCALL
LBB0_3:
	movq	16(%r14), %rbx
	movq	_AD5291_ID@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_DPOT_UID
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.4:
	movq	16(%r14), %rbx
	movq	_AD5292_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DPOT_UID
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.5:
	movq	16(%r14), %rbx
	movq	_AD5293_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DPOT_UID
	cmpq	%rax, %rbx
	jne	LBB0_7
LBB0_6:
	movq	_DPOT_AD5291_READ_RDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	%r14, %rdi
	callq	_dpot_read_r8d8
	movl	%eax, %r15d
	movq	16(%r14), %r14
	movl	(%r12), %edi
	callq	_DPOT_UID
	movl	%r15d, %ebx
	sarl	$2, %ebx
	cmpq	%rax, %r14
	cmovnel	%r15d, %ebx
	jmp	LBB0_18
LBB0_17:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	16(%r14), %rbx
	movq	_AD5270_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DPOT_UID
	cmpq	%rax, %rbx
	je	LBB0_9
## %bb.8:
	movq	16(%r14), %rbx
	movq	_AD5271_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DPOT_UID
	cmpq	%rax, %rbx
	jne	LBB0_11
LBB0_9:
	movq	_DPOT_AD5270_1_2_4_READ_RDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	%r14, %rdi
	callq	_dpot_read_r8d8
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.10:
	movq	16(%r14), %r14
	movq	_AD5271_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DPOT_UID
	movl	%ebx, %ecx
	shrl	$2, %ecx
	cmpq	%rax, %r14
	cmovel	%ecx, %ebx
	jmp	LBB0_18
LBB0_11:
	movq	_DPOT_SPI_READ_RDAC@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DPOT_ADDR_EEPROM,8,3           ## @DPOT_ADDR_EEPROM
	.comm	_DPOT_ADDR_CMD,8,3              ## @DPOT_ADDR_CMD
	.comm	_F_RDACS_WONLY,4,2              ## @F_RDACS_WONLY
	.comm	_DPOT_RDAC_MASK,8,3             ## @DPOT_RDAC_MASK
	.comm	_AD5291_ID,4,2                  ## @AD5291_ID
	.comm	_AD5292_ID,4,2                  ## @AD5292_ID
	.comm	_AD5293_ID,4,2                  ## @AD5293_ID
	.comm	_DPOT_AD5291_READ_RDAC,4,2      ## @DPOT_AD5291_READ_RDAC
	.comm	_AD5270_ID,4,2                  ## @AD5270_ID
	.comm	_AD5271_ID,4,2                  ## @AD5271_ID
	.comm	_DPOT_AD5270_1_2_4_READ_RDAC,4,2 ## @DPOT_AD5270_1_2_4_READ_RDAC
	.comm	_DPOT_SPI_READ_RDAC,4,2         ## @DPOT_SPI_READ_RDAC
	.comm	_DPOT_SPI_READ_EEPROM,4,2       ## @DPOT_SPI_READ_EEPROM
	.comm	_F_SPI_16BIT,4,2                ## @F_SPI_16BIT
	.comm	_F_SPI_24BIT,4,2                ## @F_SPI_24BIT
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_dpot_read_spi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpot_read_spi
_dpot_read_spi:                         ; @dpot_read_spi
	.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, x0
Lloh0:
	adrp	x8, _DPOT_ADDR_EEPROM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPOT_ADDR_EEPROM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DPOT_ADDR_CMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DPOT_ADDR_CMD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x9, x9, x8
	tst	x9, x1
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x9, _DPOT_SPI_READ_EEPROM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DPOT_SPI_READ_EEPROM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	x8, x1
	csel	w1, wzr, w9, eq
LBB0_2:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _F_SPI_16BIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _F_SPI_16BIT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	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	_dpot_read_r8d8
LBB0_4:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _F_RDACS_WONLY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _F_RDACS_WONLY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _DPOT_RDAC_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DPOT_RDAC_MASK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	and	x9, x9, x1
	ldr	w20, [x8, x9, lsl #2]
	b	LBB0_14
LBB0_6:
Lloh18:
	adrp	x9, _F_SPI_24BIT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _F_SPI_24BIT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.7:
	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	_dpot_read_r8d16
LBB0_8:
	ldr	x20, [x19, #16]
Lloh21:
	adrp	x21, _AD5291_ID@GOTPAGE
Lloh22:
	ldr	x21, [x21, _AD5291_ID@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_DPOT_UID
	cmp	x20, x0
	b.eq	LBB0_11
; %bb.9:
	ldr	x20, [x19, #16]
Lloh23:
	adrp	x8, _AD5292_ID@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AD5292_ID@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_DPOT_UID
	cmp	x20, x0
	b.eq	LBB0_11
; %bb.10:
	ldr	x20, [x19, #16]
Lloh26:
	adrp	x8, _AD5293_ID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AD5293_ID@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_DPOT_UID
	cmp	x20, x0
	b.ne	LBB0_15
LBB0_11:
Lloh29:
	adrp	x8, _DPOT_AD5291_READ_RDAC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DPOT_AD5291_READ_RDAC@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	mov	x0, x19
	bl	_dpot_read_r8d8
	mov	x20, x0
	ldr	x19, [x19, #16]
	ldr	w0, [x21]
	bl	_DPOT_UID
	asr	w8, w20, #2
LBB0_12:
	cmp	x19, x0
	csel	w20, w8, w20, eq
	b	LBB0_14
LBB0_13:
Lloh32:
	adrp	x8, _EFAULT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	mov	x0, x20
	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
LBB0_15:
	ldr	x20, [x19, #16]
Lloh35:
	adrp	x8, _AD5270_ID@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AD5270_ID@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_DPOT_UID
	cmp	x20, x0
	b.eq	LBB0_17
; %bb.16:
	ldr	x20, [x19, #16]
Lloh38:
	adrp	x8, _AD5271_ID@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AD5271_ID@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_DPOT_UID
	cmp	x20, x0
	b.ne	LBB0_19
LBB0_17:
Lloh41:
	adrp	x8, _DPOT_AD5270_1_2_4_READ_RDAC@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DPOT_AD5270_1_2_4_READ_RDAC@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	mov	x0, x19
	bl	_dpot_read_r8d8
	mov	x20, x0
	tbnz	w0, #31, LBB0_14
; %bb.18:
	ldr	x19, [x19, #16]
Lloh44:
	adrp	x8, _AD5271_ID@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AD5271_ID@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_DPOT_UID
	lsr	w8, w20, #2
	b	LBB0_12
LBB0_19:
Lloh47:
	adrp	x8, _DPOT_SPI_READ_RDAC@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DPOT_SPI_READ_RDAC@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_DPOT_ADDR_EEPROM,8,3           ; @DPOT_ADDR_EEPROM
	.comm	_DPOT_ADDR_CMD,8,3              ; @DPOT_ADDR_CMD
	.comm	_F_RDACS_WONLY,4,2              ; @F_RDACS_WONLY
	.comm	_DPOT_RDAC_MASK,8,3             ; @DPOT_RDAC_MASK
	.comm	_AD5291_ID,4,2                  ; @AD5291_ID
	.comm	_AD5292_ID,4,2                  ; @AD5292_ID
	.comm	_AD5293_ID,4,2                  ; @AD5293_ID
	.comm	_DPOT_AD5291_READ_RDAC,4,2      ; @DPOT_AD5291_READ_RDAC
	.comm	_AD5270_ID,4,2                  ; @AD5270_ID
	.comm	_AD5271_ID,4,2                  ; @AD5271_ID
	.comm	_DPOT_AD5270_1_2_4_READ_RDAC,4,2 ; @DPOT_AD5270_1_2_4_READ_RDAC
	.comm	_DPOT_SPI_READ_RDAC,4,2         ; @DPOT_SPI_READ_RDAC
	.comm	_DPOT_SPI_READ_EEPROM,4,2       ; @DPOT_SPI_READ_EEPROM
	.comm	_F_SPI_16BIT,4,2                ; @F_SPI_16BIT
	.comm	_F_SPI_24BIT,4,2                ; @F_SPI_24BIT
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_dpot_read_spi
.subsections_via_symbols
