	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geth_resize_freeq
_geth_resize_freeq:                     ## @geth_resize_freeq
	.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, %rbx
	movq	8(%rdi), %r12
	movq	16(%rdi), %rax
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	32(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	movq	40(%rax), %rax
LBB0_3:
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_5
## %bb.13:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_5:
	movq	(%r12), %rdx
LBB0_6:
	movl	(%rbx), %r8d
	leal	1(%r8), %ecx
	movl	$1, %r13d
	movl	$1, %r15d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_netdev_dbg
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_netdev_priv
	movl	(%rax), %r8d
	leal	1(%r8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	addl	%r13d, %r15d
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_netdev_dbg
LBB0_8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leal	-1(%r15), %edi
	callq	_ilog2
	leaq	1(%rax), %rsi
	movl	$15, %edi
	callq	_min
	movl	%eax, %r12d
	movl	24(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	xorl	%eax, %eax
	cmpl	%r12d, (%r14)
	je	LBB0_12
## %bb.9:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_GLOBAL_INTERRUPT_ENABLE_4_REG@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_SWFQ_EMPTY_INT_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	(%r13), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$0, 16(%r14)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_geth_cleanup_freeq
LBB0_11:
	movl	%r12d, (%r14)
	movq	%r14, %rdi
	callq	_geth_setup_freeq
	movq	%r14, %r12
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_SWFQ_EMPTY_INT_BIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port %d size: %d order %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"set shared queue to size %d order %d\n"

	.comm	_GLOBAL_INTERRUPT_ENABLE_4_REG,8,3 ## @GLOBAL_INTERRUPT_ENABLE_4_REG
	.comm	_SWFQ_EMPTY_INT_BIT,4,2         ## @SWFQ_EMPTY_INT_BIT
	.no_dead_strip	_geth_resize_freeq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geth_resize_freeq
_geth_resize_freeq:                     ; @geth_resize_freeq
	.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	x20, x0
	ldp	x22, x19, [x0, #8]
	ldr	x2, [x22]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x21, [x8]
	cbnz	x21, LBB0_3
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #40]
	ldr	x21, [x8]
	cbz	x21, LBB0_6
LBB0_3:
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_5:
	ldr	x2, [x22]
LBB0_6:
	ldr	w4, [x20]
	add	w8, w4, #1
	mov	w23, #1
	lsl	w20, w23, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x20
	bl	_netdev_dbg
	cbz	x21, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_netdev_priv
	ldr	w4, [x0]
	add	w8, w4, #1
	lsl	w3, w23, w8
	add	w20, w3, w20
	ldr	x2, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_netdev_dbg
LBB0_8:
	sub	w0, w20, #1
	bl	_ilog2
	add	x1, x0, #1
	mov	w0, #15
	bl	_min
	mov	x21, x0
	ldr	w0, [x19, #24]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_dbg
	ldr	w8, [x19]
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x23, _GLOBAL_INTERRUPT_ENABLE_4_REG@GOTPAGE
Lloh10:
	ldr	x23, [x23, _GLOBAL_INTERRUPT_ENABLE_4_REG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh11:
	adrp	x24, _SWFQ_EMPTY_INT_BIT@GOTPAGE
Lloh12:
	ldr	x24, [x24, _SWFQ_EMPTY_INT_BIT@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w22, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_geth_cleanup_freeq
LBB0_12:
	str	w21, [x19]
	mov	x0, x19
	bl	_geth_setup_freeq
	mov	x21, x0
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x24]
	orr	w0, w8, w22
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x21
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port %d size: %d order %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"set shared queue to size %d order %d\n"

	.comm	_GLOBAL_INTERRUPT_ENABLE_4_REG,8,3 ; @GLOBAL_INTERRUPT_ENABLE_4_REG
	.comm	_SWFQ_EMPTY_INT_BIT,4,2         ; @SWFQ_EMPTY_INT_BIT
	.no_dead_strip	_geth_resize_freeq
.subsections_via_symbols
