	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmac_set_ringparam
_gmac_set_ringparam:                    ## @gmac_set_ringparam
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	decq	%rdi
	callq	_ilog2
	leaq	1(%rax), %rsi
	movl	$15, %edi
	callq	_min
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_geth_resize_freeq
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	decq	%rdi
	callq	_ilog2
	leaq	1(%rax), %rsi
	movl	$15, %edi
	callq	_min
	movl	%eax, (%r14)
	leal	-2(%rax), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, 4(%r14)
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_gmac_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gmac_set_ringparam
_gmac_set_ringparam:                    ; @gmac_set_ringparam
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.3:
	sub	x0, x8, #1
	bl	_ilog2
	add	x1, x0, #1
	mov	w0, #15
	bl	_min
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_geth_resize_freeq
	mov	x21, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_5
LBB0_4:
	sub	x0, x8, #1
	bl	_ilog2
	add	x1, x0, #1
	mov	w0, #15
	bl	_min
	sub	w8, w0, #2
	mov	w9, #1
	lsl	w8, w9, w8
	stp	w0, w8, [x19]
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w21, #0
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_gmac_set_ringparam
.subsections_via_symbols
