	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_free_special_buffer
_ef4_free_special_buffer:               ## @ef4_free_special_buffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	8(%rsi), %r12d
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	8(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	24(%rsi), %r15
	movq	(%rsi), %rax
	leaq	-1(%r15,%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	16(%rsi), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	12(%rsi), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_virt_to_phys
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	pushq	%r12
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_netif_dbg
	addq	$32, %rsp
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_ef4_nic_free_buffer
	movq	$0, (%rbx)
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deallocating special buffers %d-%d at %llx+%x (virt %p phys %llx)\n"

	.no_dead_strip	_ef4_free_special_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_free_special_buffer
_ef4_free_special_buffer:               ; @ef4_free_special_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	ldr	w22, [x21, #8]!
	cbz	w22, LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _hw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w24, [x0]
	ldr	x25, [x1, #24]
	ldr	x8, [x1]
	add	x8, x25, x8
	sub	x26, x8, #1
	ldp	w28, w27, [x1, #12]
	mov	x0, x22
	bl	_virt_to_phys
	stp	w22, w0, [sp]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	mov	x4, x25
	mov	x5, x26
	mov	x6, x27
	mov	x7, x28
	bl	_netif_dbg
	mov	x0, x20
	mov	x1, x21
	bl	_ef4_nic_free_buffer
	str	xzr, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deallocating special buffers %d-%d at %llx+%x (virt %p phys %llx)\n"

	.no_dead_strip	_ef4_free_special_buffer
.subsections_via_symbols
