	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_queue_ctor
_hw_queue_ctor:                         ## @hw_queue_ctor
	.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	%edx, %r14d
	movl	%esi, %r12d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %eax
	cltd
	idivl	%r14d
	cmpl	%r14d, %esi
	jl	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%ecx, %r15d
	movq	%rdi, %r13
	movl	%r14d, %eax
	imull	%r12d, %eax
	movl	%eax, (%rdi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$8, %esi
	callq	_kmalloc_array
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movslq	%r14d, %r14
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movslq	%r12d, %r15
	shlq	$2, %r14
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	je	LBB0_12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %rdx
	incq	%rdx
	movl	$1, %ecx
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rdi
	movq	%rsi, -8(%rdi,%rdx,8)
	incl	%r12d
	cmpl	%ebx, %ecx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	1(%rdx), %rdi
	addq	%r14, %rsi
	incl	%ecx
	cmpq	%r15, %rdx
	movq	%rdi, %rdx
	jl	LBB0_9
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_19:
	movq	$0, 24(%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r13)
	movl	$1, 12(%r13)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_16
## %bb.13:
	movslq	%ebx, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	callq	_free_page
	addq	%r14, %rbx
	cmpq	%r15, %rbx
	jl	LBB0_14
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pagesize conflict! kernel pagesize=%d, ehea pagesize=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_hw_queue_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_queue_ctor
_hw_queue_ctor:                         ; @hw_queue_ctor
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sdiv	w23, w1, w2
	cmp	w1, w2
	ccmp	w23, #0, #4, ge
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	mov	x21, x3
	mov	x19, x0
	mul	w8, w20, w22
	str	w8, [x0]
Lloh7:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x22
	mov	w1, #8
	bl	_kmalloc_array
	str	x0, [x19, #16]
	cbz	x0, LBB0_16
; %bb.3:
	mov	w26, #0
	sxtw	x24, w22
	sbfiz	x27, x20, #2, #32
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w26, w26, w8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	x0, LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w26, w22
	b.ge	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x25]
	bl	_get_zeroed_page
	cmp	x0, #0
	ccmp	w23, #1, #8, ne
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #0
	sxtw	x9, w26
	mov	x10, x0
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x19, #16]
	str	x10, [x11, x9, lsl #3]
	add	w8, w8, #1
	cmp	w8, w23
	b.ge	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x9, x9, #1
	add	x10, x10, x27
	cmp	x9, x24
	b.lt	LBB0_9
	b	LBB0_4
LBB0_11:
	mov	w0, #0
	str	xzr, [x19, #24]
	stp	w21, w20, [x19, #4]
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_18
LBB0_12:
	cmp	w22, #1
	b.lt	LBB0_16
; %bb.13:
	mov	x20, #0
	sxtw	x21, w23
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x20, lsl #3]
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_free_page
	add	x20, x20, x21
	cmp	x20, x24
	b.lt	LBB0_14
LBB0_16:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pagesize conflict! kernel pagesize=%d, ehea pagesize=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_hw_queue_ctor
.subsections_via_symbols
