	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_alloc_special_buffer
_ef4_alloc_special_buffer:              ## @ef4_alloc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_EF4_BUF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%edx, %edi
	callq	_ALIGN
	movl	%eax, %r14d
	leaq	8(%rbx), %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_ef4_nic_alloc_buffer
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_3
LBB0_2:
	xorl	%r15d, %r15d
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	(%r13)
	movl	%eax, (%rbx)
	movl	(%r13), %edi
	decl	%edi
	andl	8(%rbx), %edi
	callq	_BUG_ON
	movl	(%r12), %r13d
	movl	%r13d, 4(%rbx)
	movl	(%rbx), %eax
	leal	(%rax,%r13), %ecx
	movl	%ecx, (%r12)
	movq	_probe@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	leal	-1(%rax,%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %ebx
	movl	%ebx, %edi
	callq	_virt_to_phys
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%rbx
	pushq	%r14
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_netif_dbg
	addq	$32, %rsp
LBB0_3:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EF4_BUF_SIZE,4,2               ## @EF4_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allocating special buffers %d-%d at %llx+%x (virt %p phys %llx)\n"

	.no_dead_strip	_ef4_alloc_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_alloc_special_buffer
_ef4_alloc_special_buffer:              ; @ef4_alloc_special_buffer
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _EF4_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EF4_BUF_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x2
	bl	_ALIGN
	mov	x20, x0
	add	x1, x21, #8
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ef4_nic_alloc_buffer
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w8, [x22]
	udiv	w8, w20, w8
	str	w8, [x21]
	ldr	w8, [x21, #8]
	ldr	w9, [x22]
	sub	w9, w9, #1
	and	w0, w9, w8
	bl	_BUG_ON
	ldp	w22, w23, [x19]
	str	w22, [x21, #4]
	ldr	w8, [x21]
	add	w8, w8, w22
	str	w8, [x19]
Lloh8:
	adrp	x9, _probe@GOTPAGE
Lloh9:
	ldr	x9, [x9, _probe@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x9]
	sub	w25, w8, #1
	ldp	w26, w21, [x21, #8]
	mov	x0, x21
	bl	_virt_to_phys
	stp	w21, w0, [sp]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x4, x22
	mov	x5, x25
	mov	x6, x26
	mov	x7, x20
	bl	_netif_dbg
	mov	w0, #0
LBB0_3:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EF4_BUF_SIZE,4,2               ; @EF4_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allocating special buffers %d-%d at %llx+%x (virt %p phys %llx)\n"

	.no_dead_strip	_ef4_alloc_special_buffer
.subsections_via_symbols
