	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_queue_frags
_set_queue_frags:                       ## @set_queue_frags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 24(%rdi)
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_MIN_FRAG_SIZE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jg	LBB0_1
## %bb.3:
	movq	_MAX_FRAG_SIZE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jl	LBB0_1
## %bb.4:
	movl	$1, %eax
	movl	%edx, %ecx
	shll	%cl, %eax
	cmpl	(%rdi), %eax
	jg	LBB0_1
## %bb.5:
	testl	%esi, %esi
	jle	LBB0_1
## %bb.6:
	movl	4(%rdi), %ecx
	cmpl	%esi, %ecx
	cmovll	%ecx, %esi
	movl	%esi, 12(%rdi)
	movl	%esi, 8(%rdi)
	movl	%eax, 16(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MIN_FRAG_SIZE,4,2              ## @MIN_FRAG_SIZE
	.comm	_MAX_FRAG_SIZE,4,2              ## @MAX_FRAG_SIZE
	.no_dead_strip	_set_queue_frags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_queue_frags
_set_queue_frags:                       ; @set_queue_frags
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #24]
	cbnz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _MIN_FRAG_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIN_FRAG_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MAX_FRAG_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_FRAG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #8, le
	b.lt	LBB0_5
; %bb.2:
	mov	w8, #1
	lsl	w9, w8, w2
	ldr	w8, [x0]
	cmp	w9, w8
	b.gt	LBB0_5
; %bb.3:
	cmp	w1, #0
	b.le	LBB0_5
; %bb.4:
	mov	w8, #0
	ldr	w10, [x0, #4]
	cmp	w10, w1
	csel	w10, w10, w1, lt
	stp	w10, w10, [x0, #8]
	str	w9, [x0, #16]
	mov	x0, x8
	ret
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MIN_FRAG_SIZE,4,2              ; @MIN_FRAG_SIZE
	.comm	_MAX_FRAG_SIZE,4,2              ; @MAX_FRAG_SIZE
	.no_dead_strip	_set_queue_frags
.subsections_via_symbols
