	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ap_cs8427_read_byte
_ap_cs8427_read_byte:                   ## @ap_cs8427_read_byte
	.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, %ebx
	movq	%rdi, %r14
	movl	$7, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ICE1712_DELTA_AP_CCLK@GOTPCREL(%rip), %r13
	movzbl	(%r13), %eax
	notb	%al
	andb	%bl, %al
	movq	_ICE1712_IREG_GPIO_DATA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movzbl	%al, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_ice1712_write
	movl	$5, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_snd_ice1712_read
	movq	_ICE1712_DELTA_AP_DIN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	testl	%eax, %eax
	cmovel	%eax, %edx
	orb	%dl, %r12b
	movq	_ICE1712_DELTA_AP_CCLK@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	movl	(%r13), %esi
	movzbl	%bl, %edx
	movq	%r14, %rdi
	callq	_snd_ice1712_write
	movl	$5, %edi
	callq	_udelay
	addl	$-1, %r15d
	jb	LBB0_1
## %bb.2:
	movzbl	%r12b, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE1712_DELTA_AP_CCLK,1,0      ## @ICE1712_DELTA_AP_CCLK
	.comm	_ICE1712_IREG_GPIO_DATA,4,2     ## @ICE1712_IREG_GPIO_DATA
	.comm	_ICE1712_DELTA_AP_DIN,4,2       ## @ICE1712_DELTA_AP_DIN
	.no_dead_strip	_ap_cs8427_read_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ap_cs8427_read_byte
_ap_cs8427_read_byte:                   ; @ap_cs8427_read_byte
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	mov	w21, #0
Lloh0:
	adrp	x22, _ICE1712_DELTA_AP_CCLK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ICE1712_DELTA_AP_CCLK@GOTPAGEOFF]
	mov	w23, #7
Lloh2:
	adrp	x24, _ICE1712_IREG_GPIO_DATA@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ICE1712_IREG_GPIO_DATA@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ICE1712_DELTA_AP_DIN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ICE1712_DELTA_AP_DIN@GOTPAGEOFF]
	mov	w26, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22]
	bic	w20, w20, w8
	ldr	w1, [x24]
	and	w2, w20, #0xff
	mov	x0, x19
	bl	_snd_ice1712_write
	mov	w0, #5
	bl	_udelay
	ldr	w1, [x24]
	mov	x0, x19
	bl	_snd_ice1712_read
	ldr	w8, [x25]
	lsl	w9, w26, w23
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w21, w8, w21
	ldrb	w8, [x22]
	orr	w20, w8, w20
	ldr	w1, [x24]
	and	w2, w20, #0xff
	mov	x0, x19
	bl	_snd_ice1712_write
	mov	w0, #5
	bl	_udelay
	sub	w23, w23, #1
	cmn	w23, #1
	b.ne	LBB0_1
; %bb.2:
	and	w0, w21, #0xff
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE1712_DELTA_AP_CCLK,1,0      ; @ICE1712_DELTA_AP_CCLK
	.comm	_ICE1712_IREG_GPIO_DATA,4,2     ; @ICE1712_IREG_GPIO_DATA
	.comm	_ICE1712_DELTA_AP_DIN,4,2       ; @ICE1712_DELTA_AP_DIN
	.no_dead_strip	_ap_cs8427_read_byte
.subsections_via_symbols
