	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5686_spi_read
_ad5686_spi_read:                       ## @ad5686_spi_read
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movabsq	$4294967299, %rax               ## imm = 0x100000003
	movq	%rax, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	(%rdi), %rax
	movq	8(%rax), %rcx
	addq	$4, %rcx
	movq	%rcx, -80(%rbp)
	movq	$3, -72(%rbp)
	movq	40(%rax), %rcx
	addq	$4, %rcx
	movq	%rcx, -64(%rbp)
	movq	24(%rax), %rax
	addq	$4, %rax
	movq	%rax, -56(%rbp)
	movl	16(%rdi), %edi
	callq	_to_spi_device
	movq	%rax, %r14
	movq	8(%r12), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.4:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_7:
	movq	_AD5686_CMD_READBACK_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_AD5686_CMD_READBACK_ENABLE_V2@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	callq	_AD5686_CMD
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_AD5686_ADDR
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	movq	_AD5686_CMD_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AD5686_CMD
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 16(%rcx)
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_spi_sync_transfer
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	(%r12), %rax
	movq	32(%rax), %rdi
	callq	_be32_to_cpu
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_AD5686_CMD_READBACK_ENABLE_V2,4,2 ## @AD5686_CMD_READBACK_ENABLE_V2
	.comm	_AD5686_CMD_READBACK_ENABLE,4,2 ## @AD5686_CMD_READBACK_ENABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AD5686_CMD_NOOP,4,2            ## @AD5686_CMD_NOOP
	.no_dead_strip	_ad5686_spi_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ad5686_spi_read
lCPI0_0:
	.long	3                               ; 0x3
	.long	1                               ; 0x1
lCPI0_1:
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ad5686_spi_read:                       ; @ad5686_spi_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	str	xzr, [sp, #16]
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	add	x9, x9, #4
	str	x9, [sp, #24]
Lloh5:
	adrp	x9, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [sp, #32]
	ldr	x9, [x8, #40]
	add	x9, x9, #4
	str	x9, [sp, #40]
	ldr	x8, [x8, #24]
	add	x8, x8, #4
	str	x8, [sp, #48]
	ldr	w0, [x0, #16]
	bl	_to_spi_device
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.3:
Lloh7:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh9:
	adrp	x8, _AD5686_CMD_READBACK_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AD5686_CMD_READBACK_ENABLE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _AD5686_CMD_READBACK_ENABLE_V2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AD5686_CMD_READBACK_ENABLE_V2@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	bl	_AD5686_CMD
	mov	x22, x0
	mov	x0, x21
	bl	_AD5686_ADDR
	orr	w0, w0, w22
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8]
Lloh13:
	adrp	x8, _AD5686_CMD_NOOP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AD5686_CMD_NOOP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_AD5686_CMD
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8, #16]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_spi_sync_transfer
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldr	x8, [x19]
	ldr	x0, [x8, #32]
	bl	_be32_to_cpu
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_AD5686_CMD_READBACK_ENABLE_V2,4,2 ; @AD5686_CMD_READBACK_ENABLE_V2
	.comm	_AD5686_CMD_READBACK_ENABLE,4,2 ; @AD5686_CMD_READBACK_ENABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AD5686_CMD_NOOP,4,2            ; @AD5686_CMD_NOOP
	.no_dead_strip	_ad5686_spi_read
.subsections_via_symbols
