	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	(%rbx), %rdx
	movq	_MAX_RX_BUFFERS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jg	LBB0_8
## %bb.1:
	movq	8(%rbx), %r14
	movq	_MAX_RX_JUMBO_BUFFERS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	jg	LBB0_8
## %bb.2:
	movl	16(%rbx), %edi
	movq	_MAX_TXQ_ENTRIES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	jle	LBB0_3
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_16:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	24(%rbx), %r8
	movq	_MAX_RSPQ_ENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	jg	LBB0_8
## %bb.4:
	movq	_MIN_RSPQ_ENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	jl	LBB0_8
## %bb.5:
	movq	_MIN_FL_ENTRIES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jl	LBB0_8
## %bb.6:
	cmpq	%rcx, %r14
	jl	LBB0_8
## %bb.7:
	movq	16(%rax), %r9
	movq	_MIN_TXQ_ENTRIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	8(%r9), %ecx
	cmpl	%ecx, %edi
	jl	LBB0_8
## %bb.10:
	movq	_FULL_INIT_DONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r9)
	je	LBB0_12
## %bb.11:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	xorl	%ecx, %ecx
	cmpl	$0, 8(%rax)
	jle	LBB0_16
## %bb.13:
	movq	16(%r9), %r9
	movq	(%rax), %r10
	shlq	$5, %r10
	movq	%r8, (%r9,%r10)
	movq	%rdx, 8(%r9,%r10)
	movq	%r14, 16(%r9,%r10)
	movq	24(%r9,%r10), %r11
	movl	%edi, (%r11)
	movl	16(%rbx), %edi
	movl	%edi, 4(%r11)
	movl	16(%rbx), %edi
	movl	%edi, 8(%r11)
	cmpl	$2, 8(%rax)
	jl	LBB0_16
## %bb.14:
	leaq	(%r10,%r9), %rdi
	addq	$56, %rdi
	movl	$1, %r9d
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %r10d
	movq	%r8, -24(%rdi)
	movq	%rdx, -16(%rdi)
	movq	%r14, -8(%rdi)
	movq	(%rdi), %r11
	movl	%r10d, (%r11)
	movl	16(%rbx), %esi
	movl	%esi, 4(%r11)
	movl	16(%rbx), %esi
	movl	%esi, 8(%r11)
	incl	%r9d
	addq	$32, %rdi
	cmpl	8(%rax), %r9d
	jl	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RX_BUFFERS,8,3             ## @MAX_RX_BUFFERS
	.comm	_MAX_RX_JUMBO_BUFFERS,8,3       ## @MAX_RX_JUMBO_BUFFERS
	.comm	_MAX_TXQ_ENTRIES,4,2            ## @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,4,2            ## @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	x9, [x19]
Lloh0:
	adrp	x8, _MAX_RX_BUFFERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RX_BUFFERS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.gt	LBB0_6
; %bb.1:
	ldr	x10, [x19, #8]
Lloh3:
	adrp	x8, _MAX_RX_JUMBO_BUFFERS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_RX_JUMBO_BUFFERS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x10, x8
	b.gt	LBB0_6
; %bb.2:
	ldr	w8, [x19, #16]
Lloh6:
	adrp	x11, _MAX_TXQ_ENTRIES@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MAX_TXQ_ENTRIES@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w8, w11
	b.gt	LBB0_6
; %bb.3:
	ldr	x11, [x19, #24]
Lloh9:
	adrp	x12, _MAX_RSPQ_ENTRIES@GOTPAGE
Lloh10:
	ldr	x12, [x12, _MAX_RSPQ_ENTRIES@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
Lloh12:
	adrp	x13, _MIN_RSPQ_ENTRIES@GOTPAGE
Lloh13:
	ldr	x13, [x13, _MIN_RSPQ_ENTRIES@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
	cmp	x11, x12
	ccmp	x11, x13, #8, le
	b.lt	LBB0_6
; %bb.4:
Lloh15:
	adrp	x12, _MIN_FL_ENTRIES@GOTPAGE
Lloh16:
	ldr	x12, [x12, _MIN_FL_ENTRIES@GOTPAGEOFF]
Lloh17:
	ldr	x12, [x12]
	cmp	x9, x12
	ccmp	x10, x12, #8, ge
	b.lt	LBB0_6
; %bb.5:
	ldr	x12, [x0, #16]
	ldr	w13, [x12, #8]
Lloh18:
	adrp	x14, _MIN_TXQ_ENTRIES@GOTPAGE
Lloh19:
	ldr	x14, [x14, _MIN_TXQ_ENTRIES@GOTPAGEOFF]
Lloh20:
	ldr	w14, [x14]
	mul	w13, w14, w13
	cmp	w8, w13
	b.ge	LBB0_9
LBB0_6:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w13, [x12]
Lloh23:
	adrp	x14, _FULL_INIT_DONE@GOTPAGE
Lloh24:
	ldr	x14, [x14, _FULL_INIT_DONE@GOTPAGEOFF]
Lloh25:
	ldr	w14, [x14]
	tst	w14, w13
	b.eq	LBB0_11
; %bb.10:
Lloh26:
	adrp	x8, _EBUSY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_11:
	ldr	w13, [x0, #8]
	cmp	w13, #1
	b.lt	LBB0_15
; %bb.12:
	ldr	x12, [x12, #16]
	ldr	x13, [x0]
	add	x12, x12, x13, lsl #5
	stp	x11, x9, [x12]
	str	x10, [x12, #16]
	ldr	x13, [x12, #24]
	str	w8, [x13]
	ldr	w8, [x19, #16]
	str	w8, [x13, #4]
	ldr	w8, [x19, #16]
	str	w8, [x13, #8]
	ldr	w8, [x0, #8]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.13:
	add	x12, x12, #56
	mov	w13, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	w8, #0
	ldr	w14, [x19, #16]
	ldr	x15, [x12]
	str	w14, [x15]
	ldr	w14, [x19, #16]
	str	w14, [x15, #4]
	ldr	w14, [x19, #16]
	str	w14, [x15, #8]
	stp	x11, x9, [x12, #-24]
	stur	x10, [x12, #-8]
	add	w13, w13, #1
	ldr	w14, [x0, #8]
	add	x12, x12, #32
	cmp	w13, w14
	b.lt	LBB0_14
	b	LBB0_8
LBB0_15:
	mov	w8, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RX_BUFFERS,8,3             ; @MAX_RX_BUFFERS
	.comm	_MAX_RX_JUMBO_BUFFERS,8,3       ; @MAX_RX_JUMBO_BUFFERS
	.comm	_MAX_TXQ_ENTRIES,4,2            ; @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,4,2            ; @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
