	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmac_construct_rxbuff
_bmac_construct_rxbuff:                 ## @bmac_construct_rxbuff
	.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, %r14
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_bmac_emergency_rxbuf@GOTPCREL(%rip), %rdi
LBB0_2:
	movq	(%rdi), %rdi
	movq	_INPUT_LAST@GOTPCREL(%rip), %rax
	movq	_INTR_ALWAYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_RX_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_virt_to_bus
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dbdma_setcmd                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bmac_emergency_rxbuf,8,3       ## @bmac_emergency_rxbuf
	.comm	_INPUT_LAST,4,2                 ## @INPUT_LAST
	.comm	_INTR_ALWAYS,4,2                ## @INTR_ALWAYS
	.comm	_RX_BUFLEN,4,2                  ## @RX_BUFLEN
	.no_dead_strip	_bmac_construct_rxbuff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmac_construct_rxbuff
_bmac_construct_rxbuff:                 ; @bmac_construct_rxbuff
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
Lloh0:
	adrp	x8, _bmac_emergency_rxbuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bmac_emergency_rxbuf@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x0, eq
	ldr	x0, [x8]
Lloh2:
	adrp	x8, _INPUT_LAST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INPUT_LAST@GOTPAGEOFF]
Lloh4:
	adrp	x9, _INTR_ALWAYS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _INTR_ALWAYS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w20, w9, w8
Lloh8:
	adrp	x8, _RX_BUFLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_BUFLEN@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	bl	_virt_to_bus
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w4, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dbdma_setcmd
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bmac_emergency_rxbuf,8,3       ; @bmac_emergency_rxbuf
	.comm	_INPUT_LAST,4,2                 ; @INPUT_LAST
	.comm	_INTR_ALWAYS,4,2                ; @INTR_ALWAYS
	.comm	_RX_BUFLEN,4,2                  ; @RX_BUFLEN
	.no_dead_strip	_bmac_construct_rxbuff
.subsections_via_symbols
