	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_alloc_rx_data
_tg3_alloc_rx_data:                     ## @tg3_alloc_rx_data
	.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	%rdi, %r14
	cmpl	$129, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$128, %edx
	jne	LBB0_3
## %bb.2:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	andl	(%r14), %ecx
	movslq	%ecx, %r15
	shlq	$3, %r15
	movq	24(%rsi), %rax
	addq	%r15, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	16(%rsi), %r15
	leaq	4(%r14), %rax
	jmp	LBB0_6
LBB0_5:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	andl	8(%r14), %ecx
	movslq	%ecx, %r15
	shlq	$3, %r15
	movq	8(%rsi), %rax
	addq	%r15, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	(%rsi), %r15
	movq	_TG3_RX_JMB_MAP_SZ@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_TG3_RX_OFFSET
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r13), %edi
	callq	_SKB_DATA_ALIGN
	movl	%eax, %ebx
	movl	$4, %edi
	callq	_SKB_DATA_ALIGN
	movl	%eax, %r12d
	addl	%ebx, %r12d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jle	LBB0_7
## %bb.8:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_kmalloc
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movl	%r12d, %edi
	callq	_napi_alloc_frag
	movl	%r12d, %edx
LBB0_9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%edx, (%rcx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movl	12(%r14), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%rax, %rbx
	callq	_TG3_RX_OFFSET
	cltq
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,4), %rsi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_pci_map_single
	movq	%rax, %rbx
	movl	12(%r14), %edi
	movq	%rax, %rsi
	callq	_pci_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	xorl	%edi, %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	setle	%dil
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_tg3_frag_free
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_14:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_dma_unmap_addr_set
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, 4(%rax)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_RX_JMB_MAP_SZ,4,2          ## @TG3_RX_JMB_MAP_SZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_tg3_alloc_rx_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_alloc_rx_data
_tg3_alloc_rx_data:                     ; @tg3_alloc_rx_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x4
	mov	x19, x0
	cmp	w2, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_8
; %bb.2:
	mov	x8, x19
	ldr	w9, [x8], #4
	and	w9, w9, w3
	sbfiz	x9, x9, #3, #32
	ldp	x11, x10, [x1, #16]
	add	x25, x10, x9
	add	x21, x11, x9
	b	LBB0_4
LBB0_3:
	ldr	w8, [x19, #8]
	and	w8, w8, w3
	sbfiz	x8, x8, #3, #32
	ldp	x10, x9, [x1]
	add	x25, x9, x8
	add	x21, x10, x8
Lloh0:
	adrp	x8, _TG3_RX_JMB_MAP_SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TG3_RX_JMB_MAP_SZ@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_TG3_RX_OFFSET
	add	w0, w0, w20
	bl	_SKB_DATA_ALIGN
	mov	x23, x0
	mov	w0, #4
	bl	_SKB_DATA_ALIGN
Lloh2:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w23, w0, w23
	cmp	w23, w8
	b.le	LBB0_9
; %bb.5:
Lloh4:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_kmalloc
	mov	x24, x0
	mov	w8, #0
	str	w8, [x22]
	cbz	x24, LBB0_10
LBB0_6:
	ldr	w22, [x19, #12]
	mov	x0, x19
	bl	_TG3_RX_OFFSET
	add	x1, x24, w0, sxtw #2
Lloh7:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x2, x20
	bl	_pci_map_single
	mov	x22, x0
	ldr	w0, [x19, #12]
	mov	x1, x22
	bl	_pci_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.7:
	ldr	w8, [x26]
	cmp	w23, w8
	cset	w0, le
	mov	x1, x24
	bl	_tg3_frag_free
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	mov	x0, x23
	bl	_napi_alloc_frag
	mov	x24, x0
	mov	x8, x23
	str	w8, [x22]
	cbnz	x24, LBB0_6
LBB0_10:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	str	x24, [x21]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x22
	bl	_dma_unmap_addr_set
	str	w22, [x25, #4]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_RX_JMB_MAP_SZ,4,2          ; @TG3_RX_JMB_MAP_SZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_tg3_alloc_rx_data
.subsections_via_symbols
