	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_alloc_mapped_page
_igb_alloc_mapped_page:                 ## @igb_alloc_mapped_page
	.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, %r12
	movq	%rdi, %r14
	movq	8(%rsi), %rdi
	callq	_likely
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	%r14, %rdi
	callq	_igb_rx_pg_order
	movl	%eax, %edi
	callq	_dev_alloc_pages
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	incl	(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	4(%r14), %r13d
	movq	%r14, %rdi
	callq	_igb_rx_pg_size
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_IGB_RX_DMA_ATTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	xorl	%ebx, %ebx
	movl	%r13d, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_dma_map_page_attrs
	movl	%eax, %r13d
	movl	4(%r14), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_igb_rx_pg_order
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	___free_pages
	incl	(%r14)
	jmp	LBB0_6
LBB0_5:
	movl	%r13d, 16(%r12)
	movq	%r15, 8(%r12)
	movq	%r14, %rdi
	callq	_igb_rx_offset
	movl	%eax, 4(%r12)
	movl	$1, (%r12)
	movl	$1, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_IGB_RX_DMA_ATTR,4,2            ## @IGB_RX_DMA_ATTR
	.no_dead_strip	_igb_alloc_mapped_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_alloc_mapped_page
_igb_alloc_mapped_page:                 ; @igb_alloc_mapped_page
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x1, #8]
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_igb_rx_pg_order
	bl	_dev_alloc_pages
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w22, [x19, #4]
	mov	x0, x19
	bl	_igb_rx_pg_size
	mov	x3, x0
Lloh0:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _IGB_RX_DMA_ATTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IGB_RX_DMA_ATTR@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	bl	_dma_map_page_attrs
	mov	x22, x0
	ldr	w0, [x19, #4]
	mov	x1, x22
	bl	_dma_mapping_error
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_igb_rx_pg_order
	mov	x1, x0
	mov	x0, x21
	bl	___free_pages
LBB0_5:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_6:
	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
LBB0_7:
	str	w22, [x20, #16]
	str	x21, [x20, #8]
	mov	x0, x19
	bl	_igb_rx_offset
	mov	x8, x0
	mov	w0, #1
	stp	w0, w8, [x20]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_IGB_RX_DMA_ATTR,4,2            ; @IGB_RX_DMA_ATTR
	.no_dead_strip	_igb_alloc_mapped_page
.subsections_via_symbols
