	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_rq_size
_set_rq_size:                           ## @set_rq_size
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_MLX4_IB_SQ_MAX_SPARE@GOTPCREL(%rip), %r14
	subq	(%r14), %rcx
	cmpq	%rcx, (%rsi)
	jg	LBB0_2
## %bb.1:
	movq	%r8, %r15
	movq	%rsi, %r13
	movq	8(%rsi), %r12
	movq	8(%rax), %rdi
	movq	16(%rax), %rsi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_min
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpq	%rax, %r12
	jbe	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.6:
	movq	(%r13), %rsi
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.7:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.8:
	cmpq	$0, 8(%r13)
	je	LBB0_2
LBB0_9:
	movl	$1, %edi
	callq	_max
	movl	%eax, %edi
	callq	_roundup_pow_of_two
	movl	%eax, (%r15)
	movq	8(%r13), %rsi
	movl	$1, %edi
	callq	_max
	movl	%eax, %edi
	callq	_roundup_pow_of_two
	movl	%eax, 4(%r15)
	leal	(,%rax,4), %edi
	callq	_ilog2
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, 16(%r15)
	testl	%ecx, %ecx
	je	LBB0_12
LBB0_11:
	movslq	(%r15), %rax
	movq	%rax, 8(%r15)
	movq	%rax, (%r13)
	movslq	4(%r15), %rax
	jmp	LBB0_13
LBB0_4:
	cmpq	$0, (%r13)
	jne	LBB0_2
## %bb.5:
	movq	$0, (%r15)
	testl	%ecx, %ecx
	jne	LBB0_11
LBB0_12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	subq	(%r14), %rdi
	movslq	(%r15), %rsi
	callq	_min
	movq	%rax, 8(%r15)
	movq	%rax, (%r13)
	movslq	4(%r15), %r14
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	movq	16(%rax), %rsi
	callq	_min
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_min
LBB0_13:
	movq	%rax, 8(%r13)
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_IB_SQ_MAX_SPARE,8,3       ## @MLX4_IB_SQ_MAX_SPARE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_set_rq_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_rq_size
_set_rq_size:                           ; @set_rq_size
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x9, [x1]
	ldr	x8, [x0]
	ldr	x10, [x8]
Lloh0:
	adrp	x24, _MLX4_IB_SQ_MAX_SPARE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MLX4_IB_SQ_MAX_SPARE@GOTPAGEOFF]
	ldr	x11, [x24]
	sub	x10, x10, x11
	cmp	x9, x10
	b.gt	LBB0_2
; %bb.1:
	mov	x20, x4
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x25, [x1, #8]
	ldp	x0, x1, [x8, #8]
	bl	_min
	cmp	x25, x0
	b.ls	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	cbz	w23, LBB0_10
; %bb.5:
	ldr	x1, [x19]
	cbz	w22, LBB0_8
; %bb.6:
	cbz	x1, LBB0_2
; %bb.7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
LBB0_8:
	mov	w0, #1
	bl	_max
	bl	_roundup_pow_of_two
	str	w0, [x20]
	ldr	x1, [x19, #8]
	mov	w0, #1
	bl	_max
	bl	_roundup_pow_of_two
	str	w0, [x20, #4]
	lsl	w0, w0, #2
	bl	_ilog2
	str	w0, [x20, #16]
	cbz	w22, LBB0_12
LBB0_9:
	ldpsw	x9, x8, [x20]
	str	x9, [x20, #8]
	str	x9, [x19]
	b	LBB0_13
LBB0_10:
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.11:
	str	xzr, [x20]
	cbnz	w22, LBB0_9
LBB0_12:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x9, [x24]
	sub	x0, x8, x9
	ldrsw	x1, [x20]
	bl	_min
	str	x0, [x20, #8]
	str	x0, [x19]
	ldrsw	x20, [x20, #4]
	ldr	x8, [x21]
	ldp	x0, x1, [x8, #8]
	bl	_min
	mov	x1, x0
	mov	x0, x20
	bl	_min
	mov	x8, x0
LBB0_13:
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_IB_SQ_MAX_SPARE,8,3       ; @MLX4_IB_SQ_MAX_SPARE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_set_rq_size
.subsections_via_symbols
