	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uec_set_ringparam
_uec_set_ringparam:                     ## @uec_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, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %rsi
	movl	(%r14), %eax
	movq	_UCC_GETH_RX_BD_RING_SIZE_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jge	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdi
	jmp	LBB0_3
LBB0_4:
	movq	_UCC_GETH_RX_BD_RING_SIZE_ALIGNMENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%ecx, %edx
LBB0_3:
	callq	_netdev_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_UCC_GETH_TX_BD_RING_SIZE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, 4(%r14)
	jge	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	movq	(%rsi), %r15
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_11:
	movl	(%r14), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movl	4(%r14), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_UCC_GETH_RX_BD_RING_SIZE_MIN,4,2 ## @UCC_GETH_RX_BD_RING_SIZE_MIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RxBD ring size must be no smaller than %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UCC_GETH_RX_BD_RING_SIZE_ALIGNMENT,4,2 ## @UCC_GETH_RX_BD_RING_SIZE_ALIGNMENT
L_.str.1:                               ## @.str.1
	.asciz	"RxBD ring size must be multiple of %d\n"

	.comm	_UCC_GETH_TX_BD_RING_SIZE_MIN,4,2 ## @UCC_GETH_TX_BD_RING_SIZE_MIN
L_.str.2:                               ## @.str.2
	.asciz	"TxBD ring size must be no smaller than %d\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_uec_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uec_set_ringparam
_uec_set_ringparam:                     ; @uec_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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _UCC_GETH_RX_BD_RING_SIZE_MIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UCC_GETH_RX_BD_RING_SIZE_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	cmp	w8, w2
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x9, _UCC_GETH_RX_BD_RING_SIZE_ALIGNMENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UCC_GETH_RX_BD_RING_SIZE_ALIGNMENT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	sdiv	w9, w8, w2
	msub	w8, w9, w2, w8
	cbz	w8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19, #4]
Lloh10:
	adrp	x9, _UCC_GETH_TX_BD_RING_SIZE_MIN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UCC_GETH_TX_BD_RING_SIZE_MIN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x9]
	cmp	w8, w2
	b.ge	LBB0_9
; %bb.5:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_netdev_info
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	ldr	x21, [x0]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_11
; %bb.10:
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_11:
	ldr	w8, [x19]
	ldp	x9, x10, [x21]
	str	w8, [x9]
	ldr	w8, [x19, #4]
	str	w8, [x10]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_UCC_GETH_RX_BD_RING_SIZE_MIN,4,2 ; @UCC_GETH_RX_BD_RING_SIZE_MIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RxBD ring size must be no smaller than %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UCC_GETH_RX_BD_RING_SIZE_ALIGNMENT,4,2 ; @UCC_GETH_RX_BD_RING_SIZE_ALIGNMENT
l_.str.1:                               ; @.str.1
	.asciz	"RxBD ring size must be multiple of %d\n"

	.comm	_UCC_GETH_TX_BD_RING_SIZE_MIN,4,2 ; @UCC_GETH_TX_BD_RING_SIZE_MIN
l_.str.2:                               ; @.str.2
	.asciz	"TxBD ring size must be no smaller than %d\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_uec_set_ringparam
.subsections_via_symbols
