	.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
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_t1_is_T1B
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%dl
	movq	(%rbx), %rsi
	movq	_MAX_RX_BUFFERS@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jg	LBB0_7
## %bb.1:
	cmpq	$0, 24(%rbx)
	jne	LBB0_7
## %bb.2:
	movq	8(%rbx), %r10
	movq	_MAX_RX_JUMBO_BUFFERS@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %r10
	jg	LBB0_7
## %bb.3:
	movl	16(%rbx), %r8d
	movq	_MAX_CMDQ_ENTRIES@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %r8d
	jle	LBB0_4
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_MIN_FL_ENTRIES@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r9
	cmpq	%r9, %rsi
	jl	LBB0_7
## %bb.5:
	cmpq	%r9, %r10
	jl	LBB0_7
## %bb.6:
	movl	8(%r14), %r9d
	incl	%r9d
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	incl	%edi
	imull	%r9d, %edi
	cmpl	%edi, %r8d
	jl	LBB0_7
## %bb.9:
	movq	_FULL_INIT_DONE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edi, (%r14)
	je	LBB0_11
## %bb.10:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_11:
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	movq	16(%r14), %rax
	movq	%rsi, (%rax,%rdi,8)
	movq	8(%rbx), %rsi
	movb	%dl, %cl
	movq	%rsi, (%rax,%rcx,8)
	movq	24(%r14), %rax
	movl	%r8d, (%rax)
	movl	16(%rbx), %ecx
	movq	_MAX_CMDQ1_ENTRIES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	cmovll	%ecx, %edx
	movl	%edx, 4(%rax)
	xorl	%eax, %eax
	jmp	LBB0_12
	.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_CMDQ_ENTRIES,4,2           ## @MAX_CMDQ_ENTRIES
	.comm	_MIN_FL_ENTRIES,8,3             ## @MIN_FL_ENTRIES
	.comm	_MAX_SKB_FRAGS,4,2              ## @MAX_SKB_FRAGS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FULL_INIT_DONE,4,2             ## @FULL_INIT_DONE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MAX_CMDQ1_ENTRIES,4,2          ## @MAX_CMDQ1_ENTRIES
	.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
	ldr	x20, [x0]
	mov	x0, x20
	bl	_t1_is_T1B
	cmp	x0, #0
	cset	w9, ne
	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_6
; %bb.1:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x11, _MAX_RX_JUMBO_BUFFERS@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MAX_RX_JUMBO_BUFFERS@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x8, x11
	b.gt	LBB0_6
; %bb.3:
	ldr	w11, [x19, #16]
Lloh6:
	adrp	x12, _MAX_CMDQ_ENTRIES@GOTPAGE
Lloh7:
	ldr	x12, [x12, _MAX_CMDQ_ENTRIES@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	cmp	w11, w12
	b.gt	LBB0_6
; %bb.4:
Lloh9:
	adrp	x12, _MIN_FL_ENTRIES@GOTPAGE
Lloh10:
	ldr	x12, [x12, _MIN_FL_ENTRIES@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	cmp	x10, x12
	ccmp	x8, x12, #8, ge
	b.lt	LBB0_6
; %bb.5:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
Lloh12:
	adrp	x12, _MAX_SKB_FRAGS@GOTPAGE
Lloh13:
	ldr	x12, [x12, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	madd	w8, w8, w12, w8
	cmp	w11, w8
	b.ge	LBB0_9
LBB0_6:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	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	w8, [x20]
Lloh17:
	adrp	x12, _FULL_INIT_DONE@GOTPAGE
Lloh18:
	ldr	x12, [x12, _FULL_INIT_DONE@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	tst	w12, w8
	b.eq	LBB0_11
; %bb.10:
Lloh20:
	adrp	x8, _EBUSY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_11:
	mov	w8, #0
	cmp	x0, #0
	cset	w12, eq
	ldp	x13, x14, [x20, #16]
	str	x10, [x13, w12, uxtw #3]
	ldr	x10, [x19, #8]
	str	x10, [x13, w9, uxtw #3]
	str	w11, [x14]
	ldr	w9, [x19, #16]
Lloh22:
	adrp	x10, _MAX_CMDQ1_ENTRIES@GOTPAGE
Lloh23:
	ldr	x10, [x10, _MAX_CMDQ1_ENTRIES@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	cmp	w9, w10
	csel	w9, w9, w10, lt
	str	w9, [x14, #4]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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_CMDQ_ENTRIES,4,2           ; @MAX_CMDQ_ENTRIES
	.comm	_MIN_FL_ENTRIES,8,3             ; @MIN_FL_ENTRIES
	.comm	_MAX_SKB_FRAGS,4,2              ; @MAX_SKB_FRAGS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FULL_INIT_DONE,4,2             ; @FULL_INIT_DONE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MAX_CMDQ1_ENTRIES,4,2          ; @MAX_CMDQ1_ENTRIES
	.no_dead_strip	_set_sge_param
.subsections_via_symbols
