	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7923_scan_direct
_ad7923_scan_direct:                    ## @ad7923_scan_direct
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_AD7923_WRITE_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%esi, %edi
	callq	_AD7923_CHANNEL_WRITE
	orl	%eax, %ebx
	movq	_AD7923_SEQUENCE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AD7923_SEQUENCE_WRITE
	orl	%eax, %ebx
	orl	(%r14), %ebx
	movq	_AD7923_SHIFT_REGISTER@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	24(%r14), %rcx
	movl	%eax, (%rcx)
	movl	20(%r14), %edi
	leaq	16(%r14), %rsi
	callq	_spi_sync
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_be16_to_cpu                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7923_WRITE_CR,4,2            ## @AD7923_WRITE_CR
	.comm	_AD7923_SEQUENCE_OFF,4,2        ## @AD7923_SEQUENCE_OFF
	.comm	_AD7923_SHIFT_REGISTER,4,2      ## @AD7923_SHIFT_REGISTER
	.no_dead_strip	_ad7923_scan_direct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7923_scan_direct
_ad7923_scan_direct:                    ; @ad7923_scan_direct
	.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
Lloh0:
	adrp	x8, _AD7923_WRITE_CR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD7923_WRITE_CR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x1
	bl	_AD7923_CHANNEL_WRITE
	orr	w20, w0, w20
Lloh3:
	adrp	x8, _AD7923_SEQUENCE_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD7923_SEQUENCE_OFF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AD7923_SEQUENCE_WRITE
	orr	w8, w20, w0
	ldr	w9, [x19]
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _AD7923_SHIFT_REGISTER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AD7923_SHIFT_REGISTER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w0, w8, w9
	bl	_cpu_to_be16
	ldr	x8, [x19, #24]
	str	w0, [x8]
	ldr	w0, [x19, #20]
	add	x1, x19, #16
	bl	_spi_sync
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_be16_to_cpu
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7923_WRITE_CR,4,2            ; @AD7923_WRITE_CR
	.comm	_AD7923_SEQUENCE_OFF,4,2        ; @AD7923_SEQUENCE_OFF
	.comm	_AD7923_SHIFT_REGISTER,4,2      ; @AD7923_SHIFT_REGISTER
	.no_dead_strip	_ad7923_scan_direct
.subsections_via_symbols
