	.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
	pushq	%rax
	.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:
	andl	(%r14), %ecx
	movslq	%ecx, %r15
	shlq	$3, %r15
	movq	24(%rsi), %rax
	addq	%r15, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addq	16(%rsi), %r15
	leaq	4(%r14), %rax
	jmp	LBB0_6
LBB0_5:
	andl	8(%r14), %ecx
	movslq	%ecx, %r15
	shlq	$3, %r15
	movq	8(%rsi), %rax
	addq	%r15, %rax
	movq	%rax, -48(%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
	addl	%eax, %ebx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movl	12(%r14), %ebx
	movq	%r14, %rdi
	callq	_TG3_RX_OFFSET
	cltq
	leaq	(%r12,%rax,4), %rsi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movl	%r13d, %edx
	callq	_pci_map_single
	movq	%rax, %rbx
	movl	12(%r14), %edi
	movq	%rax, %rsi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_kfree
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, (%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_dma_unmap_addr_set
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, 4(%rax)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_RX_JMB_MAP_SZ,4,2          ## @TG3_RX_JMB_MAP_SZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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	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, x0
	cmp	w2, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_7
; %bb.2:
	mov	x8, x19
	ldr	w9, [x8], #4
	and	w9, w9, w3
	sbfiz	x9, x9, #3, #32
	ldp	x11, x10, [x1, #16]
	add	x24, 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	x24, 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	x22, x0
	mov	w0, #4
	bl	_SKB_DATA_ALIGN
	add	w0, w0, w22
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	ldr	w23, [x19, #12]
	mov	x0, x19
	bl	_TG3_RX_OFFSET
	add	x1, x22, w0, sxtw #2
Lloh5:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x2, x20
	bl	_pci_map_single
	mov	x23, x0
	ldr	w0, [x19, #12]
	mov	x1, x23
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x22
	bl	_kfree
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	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_11:
	str	x22, [x21]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x23
	bl	_dma_unmap_addr_set
	str	w23, [x24, #4]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_RX_JMB_MAP_SZ,4,2          ; @TG3_RX_JMB_MAP_SZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
