	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b44_set_ringparam
_b44_set_ringparam:                     ## @b44_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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %eax
	movq	_B44_RX_RING_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_4
## %bb.1:
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	movl	24(%rbx), %eax
	movq	_B44_TX_RING_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_4
## %bb.5:
	movq	%r14, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movl	24(%rbx), %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_b44_halt
	movq	%r14, %rdi
	callq	_b44_init_rings
	movq	_B44_FULL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b44_init_hw
	movl	12(%r14), %edi
	callq	_netif_wake_queue
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%r14, %rdi
	callq	_b44_enable_ints
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_RX_RING_SIZE,4,2           ## @B44_RX_RING_SIZE
	.comm	_B44_TX_RING_SIZE,4,2           ## @B44_TX_RING_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_B44_FULL_RESET,4,2             ## @B44_FULL_RESET
	.no_dead_strip	_b44_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b44_set_ringparam
_b44_set_ringparam:                     ; @b44_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
	bl	_netdev_priv
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _B44_RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B44_RX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x20, #24]
Lloh3:
	adrp	x9, _B44_TX_RING_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _B44_TX_RING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.4:
	mov	x19, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w8, [x20]
	ldr	w9, [x20, #24]
	stp	w8, w9, [x19]
	mov	x0, x19
	bl	_b44_halt
	mov	x0, x19
	bl	_b44_init_rings
Lloh6:
	adrp	x8, _B44_FULL_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B44_FULL_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b44_init_hw
	ldr	w0, [x19, #12]
	bl	_netif_wake_queue
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_b44_enable_ints
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_RX_RING_SIZE,4,2           ; @B44_RX_RING_SIZE
	.comm	_B44_TX_RING_SIZE,4,2           ; @B44_TX_RING_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_B44_FULL_RESET,4,2             ; @B44_FULL_RESET
	.no_dead_strip	_b44_set_ringparam
.subsections_via_symbols
