	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_sge_param
_set_sge_param:                         ## @set_sge_param
	.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	(%rbx), %rcx
	movq	_MAX_RX_BUFFERS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_7
## %bb.1:
	cmpq	$0, 24(%rbx)
	jne	LBB0_7
## %bb.2:
	movq	8(%rbx), %rdx
	movq	_MAX_TXQ_ENTRIES@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jg	LBB0_7
## %bb.3:
	movq	16(%rbx), %r15
	movq	_MAX_RSPQ_ENTRIES@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %r15
	jg	LBB0_7
## %bb.4:
	movq	_MIN_RSPQ_ENTRIES@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %r15
	jl	LBB0_7
## %bb.5:
	movq	_MIN_FL_ENTRIES@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jl	LBB0_7
## %bb.6:
	movq	_MIN_TXQ_ENTRIES@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jl	LBB0_7
## %bb.9:
	movq	8(%rax), %rsi
	movq	_FULL_INIT_DONE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edi, (%rsi)
	je	LBB0_10
## %bb.14:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%rax), %r11d
	testl	%r11d, %r11d
	jle	LBB0_11
## %bb.12:
	movq	8(%rsi), %r9
	movq	16(%rsi), %r8
	movslq	4(%rax), %r10
	addq	$8, %rcx
	xorl	%eax, %eax
	cmpl	$1, %r11d
	jne	LBB0_15
## %bb.13:
	xorl	%edi, %edi
	jmp	LBB0_17
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_15:
	movl	%r11d, %r14d
	andl	$-2, %r14d
	leaq	1(%r10), %rsi
	shlq	$4, %rsi
	leaq	(%r9,%rsi), %rbx
	addq	$8, %rbx
	leaq	(%r8,%r10,8), %rsi
	addq	$8, %rsi
	xorl	%edi, %edi
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -8(%rsi,%rdi,8)
	movq	%rcx, -16(%rbx)
	movq	%r15, -24(%rbx)
	movq	%rdx, (%rsi,%rdi,8)
	movq	%rcx, (%rbx)
	movq	%r15, -8(%rbx)
	addq	$2, %rdi
	addq	$32, %rbx
	cmpq	%rdi, %r14
	jne	LBB0_16
LBB0_17:
	testb	$1, %r11b
	je	LBB0_19
## %bb.18:
	addq	%r10, %rdi
	movq	%rdx, (%r8,%rdi,8)
	shlq	$4, %rdi
	movq	%rcx, 8(%r9,%rdi)
	movq	%r15, (%r9,%rdi)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RX_BUFFERS,8,3             ## @MAX_RX_BUFFERS
	.comm	_MAX_TXQ_ENTRIES,8,3            ## @MAX_TXQ_ENTRIES
	.comm	_MAX_RSPQ_ENTRIES,8,3           ## @MAX_RSPQ_ENTRIES
	.comm	_MIN_RSPQ_ENTRIES,8,3           ## @MIN_RSPQ_ENTRIES
	.comm	_MIN_FL_ENTRIES,8,3             ## @MIN_FL_ENTRIES
	.comm	_MIN_TXQ_ENTRIES,8,3            ## @MIN_TXQ_ENTRIES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FULL_INIT_DONE,4,2             ## @FULL_INIT_DONE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_set_sge_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_sge_param
_set_sge_param:                         ; @set_sge_param
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
	ldr	x10, [x19]
Lloh0:
	adrp	x8, _MAX_RX_BUFFERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RX_BUFFERS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x10, x8
	b.gt	LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _MAX_TXQ_ENTRIES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_TXQ_ENTRIES@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_4
; %bb.3:
	ldr	x9, [x19, #16]
Lloh6:
	adrp	x11, _MAX_RSPQ_ENTRIES@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MAX_RSPQ_ENTRIES@GOTPAGEOFF]
Lloh8:
	adrp	x12, _MIN_RSPQ_ENTRIES@GOTPAGE
Lloh9:
	ldr	x12, [x12, _MIN_RSPQ_ENTRIES@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
Lloh11:
	ldr	x12, [x12]
Lloh12:
	adrp	x13, _MIN_FL_ENTRIES@GOTPAGE
Lloh13:
	ldr	x13, [x13, _MIN_FL_ENTRIES@GOTPAGEOFF]
Lloh14:
	adrp	x14, _MIN_TXQ_ENTRIES@GOTPAGE
Lloh15:
	ldr	x14, [x14, _MIN_TXQ_ENTRIES@GOTPAGEOFF]
Lloh16:
	ldr	x13, [x13]
Lloh17:
	ldr	x14, [x14]
	cmp	x9, x11
	ccmp	x9, x12, #8, le
	ccmp	x10, x13, #8, ge
	ccmp	x8, x14, #8, ge
	b.ge	LBB0_7
LBB0_4:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x12, [x0, #8]
	ldr	w11, [x12]
Lloh20:
	adrp	x13, _FULL_INIT_DONE@GOTPAGE
Lloh21:
	ldr	x13, [x13, _FULL_INIT_DONE@GOTPAGEOFF]
Lloh22:
	ldr	w13, [x13]
	tst	w13, w11
	b.eq	LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _EBUSY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	ldr	w11, [x0]
	cmp	w11, #1
	b.lt	LBB0_15
; %bb.10:
	ldrsw	x13, [x0, #4]
	add	x10, x10, #8
	ldp	x12, x14, [x12, #8]
	cmp	w11, #8
	b.hs	LBB0_12
; %bb.11:
	mov	x15, #0
	b	LBB0_16
LBB0_12:
	and	x15, x11, #0xfffffff8
	dup.2d	v0, x8
	dup.2d	v1, x9
	dup.2d	v2, x10
	add	x17, x13, #4
	add	x16, x14, x17, lsl #3
	add	x17, x12, x17, lsl #4
	mov	x0, x15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x16, #-32]
	stp	q0, q0, [x16], #64
	sub	x1, x17, #64
	st2.2d	{ v1, v2 }, [x1]
	sub	x1, x17, #32
	add	x2, x17, #128
	st2.2d	{ v1, v2 }, [x1]
	st2.2d	{ v1, v2 }, [x17], #32
	st2.2d	{ v1, v2 }, [x17]
	mov	x17, x2
	subs	x0, x0, #8
	b.ne	LBB0_13
; %bb.14:
	cmp	x15, x11
	b.ne	LBB0_16
LBB0_15:
	mov	w0, #0
	b	LBB0_6
LBB0_16:
	add	x16, x15, x13
	add	x13, x14, x16, lsl #3
	add	x12, x12, x16, lsl #4
	add	x12, x12, #8
	sub	x11, x11, x15
	mov	w0, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	stp	x9, x10, [x12, #-8]
	add	x12, x12, #16
	str	x8, [x13], #8
	subs	x11, x11, #1
	b.ne	LBB0_17
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RX_BUFFERS,8,3             ; @MAX_RX_BUFFERS
	.comm	_MAX_TXQ_ENTRIES,8,3            ; @MAX_TXQ_ENTRIES
	.comm	_MAX_RSPQ_ENTRIES,8,3           ; @MAX_RSPQ_ENTRIES
	.comm	_MIN_RSPQ_ENTRIES,8,3           ; @MIN_RSPQ_ENTRIES
	.comm	_MIN_FL_ENTRIES,8,3             ; @MIN_FL_ENTRIES
	.comm	_MIN_TXQ_ENTRIES,8,3            ; @MIN_TXQ_ENTRIES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FULL_INIT_DONE,4,2             ; @FULL_INIT_DONE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_set_sge_param
.subsections_via_symbols
