	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet32_realloc_tx_ring
_pcnet32_realloc_tx_ring:               ## @pcnet32_realloc_tx_ring
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_pcnet32_purge_tx_ring
	movl	12(%r14), %edi
	leal	(,%r12,4), %r13d
	leaq	-64(%rbp), %rdx
	movl	%r13d, %esi
	callq	_pci_zalloc_consistent
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r12d, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edx
	movl	%r12d, %edi
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movq	16(%r14), %rdi
	callq	_kfree
	movq	24(%r14), %rdi
	callq	_kfree
	movl	(%r14), %esi
	movl	12(%r14), %edi
	shll	$2, %esi
	movq	40(%r14), %rdx
	movq	32(%r14), %rcx
	callq	_pci_free_consistent
	movl	%r12d, (%r14)
	decl	%r12d
	movl	%r12d, 4(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shll	$12, %eax
	movl	%eax, 8(%r14)
	movq	%r15, 40(%r14)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r14)
	movq	%rbx, 16(%r14)
	jmp	LBB0_6
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_5:
	movl	12(%r14), %edi
	movq	-64(%rbp), %rcx
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_pci_free_consistent
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_pcnet32_realloc_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet32_realloc_tx_ring
_pcnet32_realloc_tx_ring:               ; @pcnet32_realloc_tx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	bl	_BIT
	mov	x22, x0
	mov	x0, x21
	bl	_pcnet32_purge_tx_ring
	ldr	w0, [x19, #12]
	lsl	w24, w22, #2
	add	x2, sp, #8
	mov	x1, x24
	bl	_pci_zalloc_consistent
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x25, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x22
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x23, x0
	ldr	w2, [x25]
	mov	x0, x22
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x25, x0
	ldr	x0, [x19, #16]
	bl	_kfree
	ldr	x0, [x19, #24]
	bl	_kfree
	ldr	w0, [x19, #12]
	ldr	w8, [x19]
	lsl	w1, w8, #2
	ldp	x3, x2, [x19, #32]
	bl	_pci_free_consistent
	sub	w8, w22, #1
	stp	w22, w8, [x19]
	lsl	w8, w20, #12
	str	w8, [x19, #8]
	ldr	x8, [sp, #8]
	stp	x8, x21, [x19, #32]
	stp	x25, x23, [x19, #16]
	b	LBB0_6
LBB0_4:
	mov	x0, x23
	bl	_kfree
LBB0_5:
	ldr	w0, [x19, #12]
	ldr	x3, [sp, #8]
	mov	x1, x24
	mov	x2, x21
	bl	_pci_free_consistent
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_pcnet32_realloc_tx_ring
.subsections_via_symbols
