	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_probe_tx_queue             ## -- Begin function efx_probe_tx_queue
	.p2align	4, 0x90
_efx_probe_tx_queue:                    ## @efx_probe_tx_queue
	.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	%rdi, %r14
	movq	32(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_roundup_pow_of_two
	movq	_EFX_MIN_DMAQ_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_max
	movl	%eax, %r15d
	movq	_EFX_MAX_DMAQ_SIZE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	seta	%dil
	callq	_EFX_WARN_ON_PARANOID
	leal	-1(%r15), %eax
	movl	%eax, (%r14)
	movq	_probe@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %r9d
	movl	4(%rbx), %edx
	movl	24(%r14), %r8d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_dbg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_efx_tx_cb_page_count
	movl	(%rbx), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_efx_nic_probe_tx
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	16(%r14), %rdi
	callq	_kfree
	movq	$0, 16(%r14)
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	8(%r14), %rdi
	callq	_kfree
	movq	$0, 8(%r14)
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_MIN_DMAQ_SIZE,4,2          ## @EFX_MIN_DMAQ_SIZE
	.comm	_EFX_MAX_DMAQ_SIZE,4,2          ## @EFX_MAX_DMAQ_SIZE
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"creating TX queue %d size %#x mask %#x\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_probe_tx_queue             ; -- Begin function efx_probe_tx_queue
	.p2align	2
_efx_probe_tx_queue:                    ; @efx_probe_tx_queue
	.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, x0
	ldr	x20, [x0, #32]
	ldr	w0, [x20]
	bl	_roundup_pow_of_two
Lloh0:
	adrp	x8, _EFX_MIN_DMAQ_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFX_MIN_DMAQ_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_max
	mov	x21, x0
Lloh3:
	adrp	x8, _EFX_MAX_DMAQ_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFX_MAX_DMAQ_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, hi
	bl	_EFX_WARN_ON_PARANOID
	sub	w6, w21, #1
	str	w6, [x19]
Lloh6:
	adrp	x8, _probe@GOTPAGE
Lloh7:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w4, [x19, #24]
	ldp	w5, w2, [x20]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_dbg
Lloh11:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x21
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_efx_tx_cb_page_count
	ldr	w2, [x20]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_efx_nic_probe_tx
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #16]
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_7:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_MIN_DMAQ_SIZE,4,2          ; @EFX_MIN_DMAQ_SIZE
	.comm	_EFX_MAX_DMAQ_SIZE,4,2          ; @EFX_MAX_DMAQ_SIZE
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"creating TX queue %d size %#x mask %#x\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
