	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_extend_sge_param
_set_extend_sge_param:                  ## @set_extend_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
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movl	16(%rsi), %edi
	cmpl	$3, %edi
	jl	LBB0_2
## %bb.1:
	addl	$-2, %edi
	imull	20(%rbx), %edi
	callq	_roundup_pow_of_two
	movq	%rax, 8(%rbx)
	movl	$4, (%rbx)
LBB0_2:
	cmpl	$3, (%r15)
	jl	LBB0_5
## %bb.3:
	movq	24(%rbx), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	16(%rbx), %edi
	imull	20(%rbx), %edi
	callq	_roundup_pow_of_two
	movq	%rax, 8(%rbx)
	movl	$4, (%rbx)
LBB0_5:
	xorl	%eax, %eax
	cmpl	$3, 16(%rbx)
	jl	LBB0_9
## %bb.6:
	movq	16(%r15), %rcx
	cmpl	$32, (%rcx)
	jne	LBB0_9
## %bb.7:
	movq	8(%rbx), %rdx
	cmpq	8(%r15), %rdx
	jbe	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The extended sge cnt error! sge_cnt=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_set_extend_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_extend_sge_param
_set_extend_sge_param:                  ; @set_extend_sge_param
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	w8, [x1, #16]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	ldr	w9, [x21, #20]
	sub	w8, w8, #2
	mul	w0, w9, w8
	bl	_roundup_pow_of_two
	str	x0, [x21, #8]
	mov	w8, #4
	str	w8, [x21]
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #3
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x21, #24]
Lloh0:
	adrp	x9, _IB_QPT_GSI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_GSI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldp	w9, w8, [x21, #16]
	mul	w0, w9, w8
	bl	_roundup_pow_of_two
	str	x0, [x21, #8]
	mov	w8, #4
	str	w8, [x21]
LBB0_5:
	ldr	w8, [x21, #16]
	cmp	w8, #3
	b.lt	LBB0_9
; %bb.6:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, #32
	b.ne	LBB0_9
; %bb.7:
	ldr	x2, [x21, #8]
	ldr	x8, [x20, #8]
	cmp	x2, x8
	b.ls	LBB0_9
; %bb.8:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The extended sge cnt error! sge_cnt=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_set_extend_sge_param
.subsections_via_symbols
