	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_alloc_consistent
_tg3_alloc_consistent:                  ## @tg3_alloc_consistent
	.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
	movq	8(%rdi), %rdi
	leaq	32(%r14), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.2:
	movl	$16, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rbx
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -16(%r12,%r13)
	incq	%r15
	movslq	(%r14), %rax
	addq	$24, %r13
	cmpq	%rax, %r15
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	movq	16(%r14), %r12
	movq	_TG3_HW_STATUS_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	(%r12,%r13), %rdx
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, -8(%r12,%r13)
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	_ENABLE_RSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%r15), %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rbx
	jmp	LBB0_12
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$12, %rbx
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rbx
	jmp	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	callq	_tg3_mem_tx_acquire
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_tg3_mem_rx_acquire
	testq	%rax, %rax
	je	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_tg3_free_consistent
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_TG3_HW_STATUS_SIZE,4,2         ## @TG3_HW_STATUS_SIZE
	.comm	_ENABLE_RSS,4,2                 ## @ENABLE_RSS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_tg3_alloc_consistent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_alloc_consistent
_tg3_alloc_consistent:                  ; @tg3_alloc_consistent
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	add	x2, x19, #32
	ldr	w8, [x21]
Lloh2:
	adrp	x22, ___GFP_ZERO@GOTPAGE
Lloh3:
	ldr	x22, [x22, ___GFP_ZERO@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w3, w9, w8
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x19, #24]
	cbz	x0, LBB0_15
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh4:
	adrp	x25, _TG3_HW_STATUS_SIZE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TG3_HW_STATUS_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x26, _ENABLE_RSS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _ENABLE_RSS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x28, x23]
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x23, x23, #24
	cmp	x24, x8
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x0, x28, [x19, #8]
	ldr	w1, [x25]
	add	x27, x28, x23
	add	x2, x27, #16
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w3, w9, w8
	bl	_dma_alloc_coherent
	str	x0, [x27, #8]
	cbz	x0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	ldr	w1, [x26]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w24, #1
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh8:
	adrp	x11, lJTI0_0@PAGE
Lloh9:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_3
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x20, #16
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x20, #12
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x20, #8
	b	LBB0_4
LBB0_13:
	mov	x0, x19
	bl	_tg3_mem_tx_acquire
	cbnz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_tg3_mem_rx_acquire
	cbz	x0, LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_tg3_free_consistent
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_TG3_HW_STATUS_SIZE,4,2         ; @TG3_HW_STATUS_SIZE
	.comm	_ENABLE_RSS,4,2                 ; @ENABLE_RSS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_tg3_alloc_consistent
.subsections_via_symbols
