	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_qp_readq_init
_siw_qp_readq_init:                     ## @siw_qp_readq_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_roundup_pow_of_two
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_roundup_pow_of_two
	movl	%eax, %r12d
	movl	%r14d, 8(%rbx)
	movl	%eax, 12(%rbx)
	movl	%r14d, %edi
	shll	$2, %edi
	callq	_vzalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	%r12d, %edi
	shll	$2, %edi
	callq	_vzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	movl	$0, 8(%rbx)
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	movq	$0, 8(%rbx)
	movq	(%rbx), %rdi
	callq	_vfree
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq malloc for %d failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"orq malloc for %d failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"ORD %d, IRD %d\n"

	.no_dead_strip	_siw_qp_readq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_qp_readq_init
_siw_qp_readq_init:                     ; @siw_qp_readq_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x19, x0
	mov	x0, x1
	bl	_roundup_pow_of_two
	mov	x20, x0
	mov	x0, x21
	bl	_roundup_pow_of_two
	mov	x21, x0
	stp	w20, w0, [x19, #8]
	lsl	w0, w20, #2
	bl	_vzalloc
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	lsl	w0, w21, #2
	bl	_vzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.2:
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_siw_dbg_qp
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_siw_dbg_qp
	str	wzr, [x19, #8]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_siw_dbg_qp
	str	xzr, [x19, #8]
	ldr	x0, [x19]
	bl	_vfree
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq malloc for %d failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"orq malloc for %d failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"ORD %d, IRD %d\n"

	.no_dead_strip	_siw_qp_readq_init
.subsections_via_symbols
