	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chipio_read_data
_chipio_read_data:                      ## @chipio_read_data
	.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
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	_VENDOR_CHIPIO_HIC_POST_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_chipio_send
	movl	%eax, %ebx
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	cmpl	%r14d, %ebx
	je	LBB0_2
## %bb.1:
	movq	_VENDOR_CHIPIO_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_chipio_send
	movl	%eax, %ebx
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %r14d
LBB0_2:
	cmpl	%r14d, %ebx
	je	LBB0_4
## %bb.3:
	movq	_WIDGET_CHIP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VENDOR_CHIPIO_HIC_READ_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_4:
	movl	$-1, %eax
	cmpl	%r14d, %ebx
	je	LBB0_6
## %bb.5:
	movl	(%r12), %eax
	addl	$4, %eax
LBB0_6:
	movl	%eax, (%r12)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VENDOR_CHIPIO_HIC_POST_READ,4,2 ## @VENDOR_CHIPIO_HIC_POST_READ
	.comm	_EIO,4,2                        ## @EIO
	.comm	_VENDOR_CHIPIO_STATUS,4,2       ## @VENDOR_CHIPIO_STATUS
	.comm	_WIDGET_CHIP_CTRL,4,2           ## @WIDGET_CHIP_CTRL
	.comm	_VENDOR_CHIPIO_HIC_READ_DATA,4,2 ## @VENDOR_CHIPIO_HIC_READ_DATA
	.no_dead_strip	_chipio_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chipio_read_data
_chipio_read_data:                      ; @chipio_read_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _VENDOR_CHIPIO_HIC_POST_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VENDOR_CHIPIO_HIC_POST_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_chipio_send
Lloh3:
	adrp	x23, _EIO@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EIO@GOTPAGEOFF]
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _VENDOR_CHIPIO_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VENDOR_CHIPIO_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_chipio_send
	mov	x19, x0
	ldr	w8, [x23]
LBB0_3:
	neg	w8, w8
	cmp	w19, w8
	b.eq	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _WIDGET_CHIP_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WIDGET_CHIP_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _VENDOR_CHIPIO_HIC_READ_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VENDOR_CHIPIO_HIC_READ_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	str	w0, [x20]
	ldr	w8, [x23]
	neg	w8, w8
LBB0_5:
	cmp	w19, w8
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #-1
	b	LBB0_8
LBB0_7:
	ldr	w8, [x22]
	add	w8, w8, #4
LBB0_8:
	str	w8, [x22]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VENDOR_CHIPIO_HIC_POST_READ,4,2 ; @VENDOR_CHIPIO_HIC_POST_READ
	.comm	_EIO,4,2                        ; @EIO
	.comm	_VENDOR_CHIPIO_STATUS,4,2       ; @VENDOR_CHIPIO_STATUS
	.comm	_WIDGET_CHIP_CTRL,4,2           ; @WIDGET_CHIP_CTRL
	.comm	_VENDOR_CHIPIO_HIC_READ_DATA,4,2 ; @VENDOR_CHIPIO_HIC_READ_DATA
	.no_dead_strip	_chipio_read_data
.subsections_via_symbols
