	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nixge_check_tx_bd_space
_nixge_check_tx_bd_space:               ## @nixge_check_tx_bd_space
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	8(%rdi), %rcx
	addl	(%rdi), %eax
	movq	_TX_BD_NUM@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movslq	%edx, %rdx
	movq	_XAXIDMA_BD_STS_ALL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rcx,%rdx,4), %eax
	je	LBB0_2
## %bb.1:
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_BD_NUM,4,2                  ## @TX_BD_NUM
	.comm	_XAXIDMA_BD_STS_ALL_MASK,4,2    ## @XAXIDMA_BD_STS_ALL_MASK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.no_dead_strip	_nixge_check_tx_bd_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nixge_check_tx_bd_space
_nixge_check_tx_bd_space:               ; @nixge_check_tx_bd_space
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	w9, [x0]
	add	w9, w9, w1
Lloh0:
	adrp	x10, _TX_BD_NUM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TX_BD_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	ldr	w8, [x8, w9, sxtw #2]
Lloh3:
	adrp	x9, _XAXIDMA_BD_STS_ALL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XAXIDMA_BD_STS_ALL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _NETDEV_TX_BUSY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NETDEV_TX_BUSY@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w0, wzr, w10, eq
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_BD_NUM,4,2                  ; @TX_BD_NUM
	.comm	_XAXIDMA_BD_STS_ALL_MASK,4,2    ; @XAXIDMA_BD_STS_ALL_MASK
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.no_dead_strip	_nixge_check_tx_bd_space
.subsections_via_symbols
