	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_channel_status
_get_channel_status:                    ## @get_channel_status
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_FROM_AUX_ENGINE
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	$0, (%r15)
	movq	_AUX_SW_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_AUX_SW_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %r8          ## imm = 0x66666667
	movq	%r8, %rax
	shrq	$63, %rax
	sarq	$34, %r8
	addl	%eax, %r8d
	movl	$1, %edx
	movl	$10, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_REG_WAIT
	movl	(%r14), %edi
	callq	_REG_READ
	movq	_AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_1:
	xorl	%edi, %edi
	callq	_ASSERT_CRITICAL
	movq	_AUX_CHANNEL_OPERATION_FAILED_REASON_UNKNOWN@GOTPCREL(%rip), %rbx
LBB0_14:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_AUX_SW_STATUS__AUX_SW_DONE_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.5:
	movq	_AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_STATE_MASK@GOTPCREL(%rip), %rcx
	movq	_AUX_CHANNEL_OPERATION_FAILED_TIMEOUT@GOTPCREL(%rip), %rbx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.6:
	movq	_AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.7:
	movq	_AUX_SW_STATUS__AUX_SW_RX_INVALID_STOP_MASK@GOTPCREL(%rip), %rcx
	movq	_AUX_CHANNEL_OPERATION_FAILED_INVALID_REPLY@GOTPCREL(%rip), %rbx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.8:
	movq	_AUX_SW_STATUS__AUX_SW_RX_RECV_NO_DET_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.9:
	movq	_AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_H_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.10:
	movq	_AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_L_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.11:
	movl	(%r14), %esi
	movq	_AUX_SW_REPLY_BYTE_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_get_reg_field_value
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	decq	%rax
	movq	%rax, (%r15)
	movq	_AUX_CHANNEL_OPERATION_SUCCEEDED@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_13:
	xorl	%edi, %edi
	callq	_ASSERT_CRITICAL
	movq	_AUX_CHANNEL_OPERATION_FAILED_TIMEOUT@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AUX_CHANNEL_OPERATION_FAILED_REASON_UNKNOWN,4,2 ## @AUX_CHANNEL_OPERATION_FAILED_REASON_UNKNOWN
	.comm	_AUX_SW_STATUS,4,2              ## @AUX_SW_STATUS
	.comm	_AUX_SW_DONE,4,2                ## @AUX_SW_DONE
	.comm	_AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK,4,2 ## @AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK
	.comm	_AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON,4,2 ## @AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON
	.comm	_AUX_SW_STATUS__AUX_SW_DONE_MASK,4,2 ## @AUX_SW_STATUS__AUX_SW_DONE_MASK
	.comm	_AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_STATE_MASK,4,2 ## @AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_STATE_MASK
	.comm	_AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_MASK,4,2 ## @AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_MASK
	.comm	_AUX_CHANNEL_OPERATION_FAILED_TIMEOUT,4,2 ## @AUX_CHANNEL_OPERATION_FAILED_TIMEOUT
	.comm	_AUX_SW_STATUS__AUX_SW_RX_INVALID_STOP_MASK,4,2 ## @AUX_SW_STATUS__AUX_SW_RX_INVALID_STOP_MASK
	.comm	_AUX_SW_STATUS__AUX_SW_RX_RECV_NO_DET_MASK,4,2 ## @AUX_SW_STATUS__AUX_SW_RX_RECV_NO_DET_MASK
	.comm	_AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_H_MASK,4,2 ## @AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_H_MASK
	.comm	_AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_L_MASK,4,2 ## @AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_L_MASK
	.comm	_AUX_CHANNEL_OPERATION_FAILED_INVALID_REPLY,4,2 ## @AUX_CHANNEL_OPERATION_FAILED_INVALID_REPLY
	.comm	_AUX_SW_REPLY_BYTE_COUNT,4,2    ## @AUX_SW_REPLY_BYTE_COUNT
	.comm	_AUX_CHANNEL_OPERATION_SUCCEEDED,4,2 ## @AUX_CHANNEL_OPERATION_SUCCEEDED
	.no_dead_strip	_get_channel_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_channel_status
_get_channel_status:                    ; @get_channel_status
	.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, x1
	bl	_FROM_AUX_ENGINE
	cbz	x19, LBB0_3
; %bb.1:
	str	xzr, [x19]
Lloh0:
	adrp	x20, _AUX_SW_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AUX_SW_STATUS@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _AUX_SW_DONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AUX_SW_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	ldrsw	x9, [x0]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w4, w9, w10
	mov	x0, x8
	mov	w2, #1
	mov	w3, #10
	bl	_REG_WAIT
	ldr	w0, [x20]
	bl	_REG_READ
Lloh5:
	adrp	x8, _AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON@GOTPAGEOFF]
	b	LBB0_14
LBB0_3:
	mov	w0, #0
	bl	_ASSERT_CRITICAL
Lloh10:
	adrp	x8, _AUX_CHANNEL_OPERATION_FAILED_REASON_UNKNOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AUX_CHANNEL_OPERATION_FAILED_REASON_UNKNOWN@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
Lloh12:
	adrp	x8, _AUX_SW_STATUS__AUX_SW_DONE_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AUX_SW_STATUS__AUX_SW_DONE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.5:
Lloh15:
	adrp	x8, _AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_STATE_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_STATE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_13
; %bb.6:
Lloh18:
	adrp	x8, _AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_13
; %bb.7:
Lloh21:
	adrp	x8, _AUX_SW_STATUS__AUX_SW_RX_INVALID_STOP_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AUX_SW_STATUS__AUX_SW_RX_INVALID_STOP_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.8:
Lloh24:
	adrp	x8, _AUX_SW_STATUS__AUX_SW_RX_RECV_NO_DET_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AUX_SW_STATUS__AUX_SW_RX_RECV_NO_DET_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.9:
Lloh27:
	adrp	x8, _AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_H_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_H_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.10:
Lloh30:
	adrp	x8, _AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_L_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_L_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_15
LBB0_11:
Lloh33:
	adrp	x8, _AUX_CHANNEL_OPERATION_FAILED_INVALID_REPLY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AUX_CHANNEL_OPERATION_FAILED_INVALID_REPLY@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	mov	w0, #0
	bl	_ASSERT_CRITICAL
LBB0_13:
Lloh35:
	adrp	x8, _AUX_CHANNEL_OPERATION_FAILED_TIMEOUT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AUX_CHANNEL_OPERATION_FAILED_TIMEOUT@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w1, [x20]
Lloh37:
	adrp	x8, _AUX_SW_REPLY_BYTE_COUNT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AUX_SW_REPLY_BYTE_COUNT@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	bl	_get_reg_field_value
	str	x0, [x19]
	cbz	x0, LBB0_11
; %bb.16:
	sub	x8, x0, #1
	str	x8, [x19]
Lloh40:
	adrp	x8, _AUX_CHANNEL_OPERATION_SUCCEEDED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AUX_CHANNEL_OPERATION_SUCCEEDED@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_AUX_CHANNEL_OPERATION_FAILED_REASON_UNKNOWN,4,2 ; @AUX_CHANNEL_OPERATION_FAILED_REASON_UNKNOWN
	.comm	_AUX_SW_STATUS,4,2              ; @AUX_SW_STATUS
	.comm	_AUX_SW_DONE,4,2                ; @AUX_SW_DONE
	.comm	_AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK,4,2 ; @AUX_SW_STATUS__AUX_SW_HPD_DISCON_MASK
	.comm	_AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON,4,2 ; @AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON
	.comm	_AUX_SW_STATUS__AUX_SW_DONE_MASK,4,2 ; @AUX_SW_STATUS__AUX_SW_DONE_MASK
	.comm	_AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_STATE_MASK,4,2 ; @AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_STATE_MASK
	.comm	_AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_MASK,4,2 ; @AUX_SW_STATUS__AUX_SW_RX_TIMEOUT_MASK
	.comm	_AUX_CHANNEL_OPERATION_FAILED_TIMEOUT,4,2 ; @AUX_CHANNEL_OPERATION_FAILED_TIMEOUT
	.comm	_AUX_SW_STATUS__AUX_SW_RX_INVALID_STOP_MASK,4,2 ; @AUX_SW_STATUS__AUX_SW_RX_INVALID_STOP_MASK
	.comm	_AUX_SW_STATUS__AUX_SW_RX_RECV_NO_DET_MASK,4,2 ; @AUX_SW_STATUS__AUX_SW_RX_RECV_NO_DET_MASK
	.comm	_AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_H_MASK,4,2 ; @AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_H_MASK
	.comm	_AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_L_MASK,4,2 ; @AUX_SW_STATUS__AUX_SW_RX_RECV_INVALID_L_MASK
	.comm	_AUX_CHANNEL_OPERATION_FAILED_INVALID_REPLY,4,2 ; @AUX_CHANNEL_OPERATION_FAILED_INVALID_REPLY
	.comm	_AUX_SW_REPLY_BYTE_COUNT,4,2    ; @AUX_SW_REPLY_BYTE_COUNT
	.comm	_AUX_CHANNEL_OPERATION_SUCCEEDED,4,2 ; @AUX_CHANNEL_OPERATION_SUCCEEDED
	.no_dead_strip	_get_channel_status
.subsections_via_symbols
