	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipac_rme
_ipac_rme:                              ## @ipac_rme
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	_IPAC_TYPE_IPACX@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	andl	(%rax), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_IPAC_RSTAB@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IPACX_RSTAB@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadHSCX
	movl	%eax, %r15d
	movq	32(%rbx), %rax
	movl	4(%rax), %esi
	leaq	8(%rbx), %r14
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %ecx
	callq	_pr_debug
	movl	%r15d, %eax
	andl	$240, %eax
	cmpl	$160, %eax
	jne	LBB0_4
## %bb.14:
	movq	32(%rbx), %rax
	movl	(%r12), %ecx
	andl	(%rax), %ecx
	jne	LBB0_15
## %bb.16:
	movq	_IPAC_RBCLB@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_4:
	testb	$-128, %r15b
	jne	LBB0_7
## %bb.5:
	movq	_DEBUG_HW_BCHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	32(%rbx), %rax
	movl	4(%rax), %esi
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_notice
LBB0_7:
	testb	$64, %r15b
	je	LBB0_10
## %bb.8:
	movq	_DEBUG_HW_BCHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.9:
	movq	32(%rbx), %rax
	movl	4(%rax), %esi
	movl	24(%rbx), %edx
	movl	28(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_notice
LBB0_10:
	testb	$32, %r15b
	jne	LBB0_13
## %bb.11:
	movq	_DEBUG_HW_BCHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_13
## %bb.12:
	movq	32(%rbx), %rax
	movl	4(%rax), %esi
	movl	24(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_notice
LBB0_13:
	movq	%rbx, %rdi
	movl	$128, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hscx_cmdr                      ## TAILCALL
LBB0_15:
	movq	_IPACX_RBCLB@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadHSCX
	movl	(%rbx), %ecx
	leal	-1(%rcx), %esi
	andl	%eax, %esi
	cmovel	%ecx, %esi
	movq	%rbx, %rdi
	callq	_hscx_empty_fifo
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.18:
	movl	(%rdi), %ecx
	cmpl	$1, %ecx
	jg	LBB0_19
## %bb.21:
	movq	32(%rbx), %rax
	movl	4(%rax), %esi
	movl	24(%rbx), %edx
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_debug
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_skb_trim                       ## TAILCALL
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	decl	%ecx
	movl	%ecx, %esi
	callq	_skb_trim
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_recv_Bchannel                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPAC_TYPE_IPACX,4,2            ## @IPAC_TYPE_IPACX
	.comm	_IPACX_RSTAB,4,2                ## @IPACX_RSTAB
	.comm	_IPAC_RSTAB,4,2                 ## @IPAC_RSTAB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: B%1d RSTAB %02x\n"

	.comm	_DEBUG_HW_BCHANNEL,4,2          ## @DEBUG_HW_BCHANNEL
L_.str.1:                               ## @.str.1
	.asciz	"%s: B%1d invalid frame\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: B%1d RDO proto=%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: B%1d CRC error\n"

	.comm	_IPACX_RBCLB,4,2                ## @IPACX_RBCLB
	.comm	_IPAC_RBCLB,4,2                 ## @IPAC_RBCLB
L_.str.4:                               ## @.str.4
	.asciz	"%s: B%1d frame to short %d\n"

	.no_dead_strip	_ipac_rme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipac_rme
_ipac_rme:                              ; @ipac_rme
	.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	x19, x0
	ldr	x8, [x0, #32]
	ldr	w8, [x8]
Lloh0:
	adrp	x22, _IPAC_TYPE_IPACX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IPAC_TYPE_IPACX@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IPAC_RSTAB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IPAC_RSTAB@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh4:
	adrp	x11, _IPACX_RSTAB@GOTPAGE
Lloh5:
	ldr	x11, [x11, _IPACX_RSTAB@GOTPAGEOFF]
	tst	w10, w8
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	bl	_ReadHSCX
	mov	x21, x0
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	add	x20, x19, #8
	ldr	w2, [x19, #24]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	bl	_pr_debug
	and	w8, w21, #0xf0
	cmp	w8, #160
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _IPAC_RBCLB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IPAC_RBCLB@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh10:
	adrp	x11, _IPACX_RBCLB@GOTPAGE
Lloh11:
	ldr	x11, [x11, _IPACX_RBCLB@GOTPAGEOFF]
	tst	w10, w8
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadHSCX
	ldr	w8, [x19]
	sub	w9, w8, #1
	ands	w9, w9, w0
	csel	w1, w8, w9, eq
	mov	x0, x19
	bl	_hscx_empty_fifo
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.2:
	ldr	w3, [x0]
	subs	w1, w3, #1
	b.gt	LBB0_15
; %bb.3:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	ldr	w2, [x19, #24]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_debug
	ldr	x0, [x19, #16]
	mov	w1, #0
	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
	b	_skb_trim
LBB0_4:
	tbnz	w21, #7, LBB0_7
; %bb.5:
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _DEBUG_HW_BCHANNEL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DEBUG_HW_BCHANNEL@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	ldr	w2, [x19, #24]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
LBB0_7:
	tbz	w21, #6, LBB0_10
; %bb.8:
	ldr	w8, [x20]
Lloh19:
	adrp	x9, _DEBUG_HW_BCHANNEL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DEBUG_HW_BCHANNEL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	ldp	w2, w8, [x19, #24]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_notice
LBB0_10:
	tbnz	w21, #5, LBB0_13
; %bb.11:
	ldr	w8, [x20]
Lloh24:
	adrp	x9, _DEBUG_HW_BCHANNEL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DEBUG_HW_BCHANNEL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	ldr	w2, [x19, #24]
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_notice
LBB0_13:
	mov	x0, x19
	mov	w1, #128
	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
	b	_hscx_cmdr
LBB0_14:
	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
LBB0_15:
	bl	_skb_trim
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	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
	b	_recv_Bchannel
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IPAC_TYPE_IPACX,4,2            ; @IPAC_TYPE_IPACX
	.comm	_IPACX_RSTAB,4,2                ; @IPACX_RSTAB
	.comm	_IPAC_RSTAB,4,2                 ; @IPAC_RSTAB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: B%1d RSTAB %02x\n"

	.comm	_DEBUG_HW_BCHANNEL,4,2          ; @DEBUG_HW_BCHANNEL
l_.str.1:                               ; @.str.1
	.asciz	"%s: B%1d invalid frame\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: B%1d RDO proto=%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: B%1d CRC error\n"

	.comm	_IPACX_RBCLB,4,2                ; @IPACX_RBCLB
	.comm	_IPAC_RBCLB,4,2                 ; @IPAC_RBCLB
l_.str.4:                               ; @.str.4
	.asciz	"%s: B%1d frame to short %d\n"

	.no_dead_strip	_ipac_rme
.subsections_via_symbols
