	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_config_tx_fifo_size
_xgbe_config_tx_fifo_size:              ## @xgbe_config_tx_fifo_size
	.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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_XGBE_MAX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r15, %rdi
	callq	_xgbe_get_tx_fifo_size
	movl	(%r15), %esi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_xgbe_calculate_equal_fifo
	cmpl	$0, (%r15)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_MTL_Q_TQOMR@GOTPCREL(%rip), %r12
	movq	_TQS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movl	(%r14,%rbx,4), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_XGMAC_MTL_IOWRITE_BITS
	incq	%rbx
	movl	(%r15), %r8d
	cmpq	%r8, %rbx
	jb	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r8d, %r8d
LBB0_4:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movl	(%r14), %r9d
	incl	%r9d
	movq	_XGMAC_FIFO_UNIT@GOTPCREL(%rip), %rax
	imull	(%rax), %r9d
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_netif_info
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XGBE_MAX_QUEUES,4,2            ## @XGBE_MAX_QUEUES
	.comm	_MTL_Q_TQOMR,4,2                ## @MTL_Q_TQOMR
	.comm	_TQS,4,2                        ## @TQS
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d Tx hardware queues, %d byte fifo per queue\n"

	.comm	_XGMAC_FIFO_UNIT,4,2            ## @XGMAC_FIFO_UNIT
	.no_dead_strip	_xgbe_config_tx_fifo_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_config_tx_fifo_size
_xgbe_config_tx_fifo_size:              ; @xgbe_config_tx_fifo_size
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _XGBE_MAX_QUEUES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XGBE_MAX_QUEUES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	bl	_xgbe_get_tx_fifo_size
	ldr	w1, [x19]
	mov	x2, x20
	bl	_xgbe_calculate_equal_fifo
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x21, #0
Lloh8:
	adrp	x22, _MTL_Q_TQOMR@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MTL_Q_TQOMR@GOTPAGEOFF]
Lloh10:
	adrp	x23, _TQS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _TQS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	ldr	w3, [x23]
	ldr	w4, [x20, x21, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_XGMAC_MTL_IOWRITE_BITS
	add	x21, x21, #1
	ldr	w4, [x19]
	cmp	x21, x4
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w4, #0
LBB0_4:
Lloh12:
	adrp	x8, _drv@GOTPAGE
Lloh13:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _XGMAC_FIFO_UNIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XGMAC_FIFO_UNIT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	madd	w5, w9, w8, w9
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_netif_info
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #48
	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_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_XGBE_MAX_QUEUES,4,2            ; @XGBE_MAX_QUEUES
	.comm	_MTL_Q_TQOMR,4,2                ; @MTL_Q_TQOMR
	.comm	_TQS,4,2                        ; @TQS
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d Tx hardware queues, %d byte fifo per queue\n"

	.comm	_XGMAC_FIFO_UNIT,4,2            ; @XGMAC_FIFO_UNIT
	.no_dead_strip	_xgbe_config_tx_fifo_size
.subsections_via_symbols
