	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temac_check_tx_bd_space
_temac_check_tx_bd_space:               ## @temac_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	(%rdi), %ecx
	movq	8(%rdi), %rdx
	movq	_TX_BD_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%esi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rax
	cmpq	$0, (%rdx,%rax,8)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ecx
	xorl	%eax, %eax
	cmpl	%edi, %ecx
	cmovgel	%eax, %ecx
	decl	%esi
	testl	%esi, %esi
	jg	LBB0_1
## %bb.4:
	popq	%rbp
	retq
LBB0_2:
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_TX_BD_NUM,4,2                  ## @TX_BD_NUM
	.no_dead_strip	_temac_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 temac_check_tx_bd_space
_temac_check_tx_bd_space:               ; @temac_check_tx_bd_space
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _TX_BD_NUM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TX_BD_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	add	w11, w1, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, w8, sxtw #3]
	cbnz	x12, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w12, w8, #1
	cmp	w12, w10
	csinc	w8, wzr, w8, ge
	sub	w11, w11, #1
	cmp	w11, #0
	b.gt	LBB0_1
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
Lloh3:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_TX_BD_NUM,4,2                  ; @TX_BD_NUM
	.no_dead_strip	_temac_check_tx_bd_space
.subsections_via_symbols
