	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_channel_reply
_read_channel_reply:                    ## @read_channel_reply
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %r15d
	callq	_FROM_AUX_ENGINE
	movq	_AUX_SW_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AUX_SW_REPLY_BYTE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_REG_GET
	movl	%eax, (%rbx)
	movq	_AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_10
## %bb.1:
	cmpl	$0, -44(%rbp)
	je	LBB0_10
## %bb.2:
	movq	_AUX_SW_DATA@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_AUX_SW_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AUX_SW_AUTOINCREMENT_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AUX_SW_DATA_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, (%rsp)
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_REG_UPDATE_SEQ_3
	movl	(%r13), %edi
	leaq	-48(%rbp), %rdx
	movl	%edi, %esi
	callq	_REG_GET
	movl	-48(%rbp), %eax
	movl	%eax, %ecx
	sarl	$4, %ecx
	movl	%ecx, -48(%rbp)
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movl	%ecx, (%r12)
LBB0_4:
	cmpl	$15, %eax
	ja	LBB0_5
## %bb.6:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, -44(%rbp)
	cmpl	%r15d, %ecx
	jg	LBB0_10
## %bb.7:
	movl	$0, %ebx
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	leaq	-52(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	%edi, %esi
	movq	%r15, %rdx
	callq	_REG_GET
	movl	-52(%rbp), %eax
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	movslq	-44(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
	jmp	LBB0_10
LBB0_5:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUX_SW_STATUS,4,2              ## @AUX_SW_STATUS
	.comm	_AUX_SW_REPLY_BYTE_COUNT,4,2    ## @AUX_SW_REPLY_BYTE_COUNT
	.comm	_AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK,4,2 ## @AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK
	.comm	_AUX_SW_DATA,4,2                ## @AUX_SW_DATA
	.comm	_AUX_SW_INDEX,4,2               ## @AUX_SW_INDEX
	.comm	_AUX_SW_AUTOINCREMENT_DISABLE,4,2 ## @AUX_SW_AUTOINCREMENT_DISABLE
	.comm	_AUX_SW_DATA_RW,4,2             ## @AUX_SW_DATA_RW
	.no_dead_strip	_read_channel_reply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_channel_reply
_read_channel_reply:                    ; @read_channel_reply
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x4
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	bl	_FROM_AUX_ENGINE
Lloh0:
	adrp	x8, _AUX_SW_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUX_SW_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _AUX_SW_REPLY_BYTE_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUX_SW_REPLY_BYTE_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_REG_GET
Lloh6:
	adrp	x8, _AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK@GOTPAGEOFF]
	str	w0, [x22]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [sp, #12]
	cmp	w8, #0
	ccmp	w9, #0, #4, eq
	b.ne	LBB0_2
LBB0_1:
	mov	w20, #-1
	b	LBB0_10
LBB0_2:
Lloh9:
	adrp	x22, _AUX_SW_DATA@GOTPAGE
Lloh10:
	ldr	x22, [x22, _AUX_SW_DATA@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh11:
	adrp	x8, _AUX_SW_INDEX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AUX_SW_INDEX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _AUX_SW_AUTOINCREMENT_DISABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AUX_SW_AUTOINCREMENT_DISABLE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
Lloh17:
	adrp	x8, _AUX_SW_DATA_RW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AUX_SW_DATA_RW@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
	mov	w2, #0
	mov	w4, #1
	mov	w6, #1
	bl	_REG_UPDATE_SEQ_3
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x0
	bl	_REG_GET
	ldr	w8, [sp, #8]
	asr	w9, w8, #4
	str	w9, [sp, #8]
	cbz	x21, LBB0_4
; %bb.3:
	str	w9, [x21]
LBB0_4:
	cmp	w8, #15
	b.hi	LBB0_9
; %bb.5:
	ldr	w8, [sp, #12]
	sub	w9, w8, #1
	str	w9, [sp, #12]
	cmp	w9, w20
	b.gt	LBB0_1
; %bb.6:
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	add	x2, sp, #4
	mov	x1, x0
	bl	_REG_GET
	ldr	w8, [sp, #4]
	str	w8, [x19, x20, lsl #2]
	add	x20, x20, #1
	ldrsw	x8, [sp, #12]
	cmp	x20, x8
	b.lt	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AUX_SW_STATUS,4,2              ; @AUX_SW_STATUS
	.comm	_AUX_SW_REPLY_BYTE_COUNT,4,2    ; @AUX_SW_REPLY_BYTE_COUNT
	.comm	_AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK,4,2 ; @AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK
	.comm	_AUX_SW_DATA,4,2                ; @AUX_SW_DATA
	.comm	_AUX_SW_INDEX,4,2               ; @AUX_SW_INDEX
	.comm	_AUX_SW_AUTOINCREMENT_DISABLE,4,2 ; @AUX_SW_AUTOINCREMENT_DISABLE
	.comm	_AUX_SW_DATA_RW,4,2             ; @AUX_SW_DATA_RW
	.no_dead_strip	_read_channel_reply
.subsections_via_symbols
