	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_buffer_alloc
_recv_buffer_alloc:                     ## @recv_buffer_alloc
	.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
	pushq	%rax
	.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, %r12
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	_MIN_SKB_SIZE@GOTPCREL(%rip), %rax
	movq	_SKB_ADJ@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	callq	_dev_alloc_skb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	___free_page
	jmp	LBB0_8
LBB0_4:
	movq	_SKB_ADJ_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	8(%rbx), %rax
	je	LBB0_6
## %bb.5:
	movq	(%r13), %rsi
	subq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_skb_reserve
LBB0_6:
	movq	(%rbx), %r13
	movq	(%r12), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_dma_map_page
	movl	%eax, (%r14)
	movq	(%r12), %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	callq	___free_page
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
LBB0_8:
	movq	$0, 16(%r14)
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, 16(%r14)
	movq	$0, 8(%r14)
	movq	%r15, 16(%r13)
	movq	$0, 8(%r13)
	movl	(%r14), %eax
	movl	%eax, (%r13)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_MIN_SKB_SIZE,8,3               ## @MIN_SKB_SIZE
	.comm	_SKB_ADJ,8,3                    ## @SKB_ADJ
	.comm	_SKB_ADJ_MASK,8,3               ## @SKB_ADJ_MASK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_recv_buffer_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_buffer_alloc
_recv_buffer_alloc:                     ; @recv_buffer_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_alloc_page
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_9
LBB0_2:
Lloh3:
	adrp	x8, _MIN_SKB_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIN_SKB_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x23, _SKB_ADJ@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SKB_ADJ@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_dev_alloc_skb
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	___free_page
	b	LBB0_8
LBB0_4:
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x9, _SKB_ADJ_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SKB_ADJ_MASK@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ands	x8, x9, x8
	b.eq	LBB0_6
; %bb.5:
	ldr	x9, [x23]
	sub	x1, x9, x8
	mov	x0, x20
	bl	_skb_reserve
LBB0_6:
	ldr	x23, [x20]
	ldr	x0, [x22]
Lloh11:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x1, x21
	mov	w2, #0
	bl	_dma_map_page
	mov	x1, x0
	str	w0, [x19]
	ldr	x0, [x22]
	bl	_dma_mapping_error
	cbz	x0, LBB0_10
; %bb.7:
	mov	x0, x21
	bl	___free_page
	mov	x0, x20
	bl	_dev_kfree_skb_any
LBB0_8:
	mov	x20, #0
	str	xzr, [x19, #16]
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	stp	xzr, x21, [x19, #8]
	stp	xzr, x21, [x23, #8]
	ldr	w8, [x19]
	str	w8, [x23]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_MIN_SKB_SIZE,8,3               ; @MIN_SKB_SIZE
	.comm	_SKB_ADJ,8,3                    ; @SKB_ADJ
	.comm	_SKB_ADJ_MASK,8,3               ; @SKB_ADJ_MASK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_recv_buffer_alloc
.subsections_via_symbols
