	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_queue_init
_hw_queue_init:                         ## @hw_queue_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_HL_QUEUE_SIZE_IN_BYTES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_HL_PAGE_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_BUILD_BUG_ON
	movl	%ebx, 8(%r15)
	movl	(%r15), %edx
	leal	-128(%rdx), %ecx
	cmpl	$3, %ecx
	ja	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_int_hw_queue_init
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_7
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_crit
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_7
LBB0_2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ext_hw_queue_init
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_7
LBB0_4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_cpu_hw_queue_init
	testl	%eax, %eax
	jne	LBB0_9
LBB0_7:
	movl	$1, %eax
LBB0_8:
	movl	%eax, 4(%r15)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_HL_QUEUE_SIZE_IN_BYTES,8,3     ## @HL_QUEUE_SIZE_IN_BYTES
	.comm	_HL_PAGE_SIZE,8,3               ## @HL_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong queue type %d during init\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hw_queue_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_queue_init
_hw_queue_init:                         ; @hw_queue_init
	.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, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HL_QUEUE_SIZE_IN_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HL_QUEUE_SIZE_IN_BYTES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _HL_PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HL_PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, gt
	bl	_BUILD_BUG_ON
	str	w21, [x19, #8]
	ldr	w2, [x19]
	sub	w9, w2, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
	mov	w8, #0
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_int_hw_queue_init
	cbnz	w0, LBB0_8
	b	LBB0_6
LBB0_3:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_crit
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	cbnz	w0, LBB0_8
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_ext_hw_queue_init
	cbnz	w0, LBB0_8
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_cpu_hw_queue_init
	cbnz	w0, LBB0_8
LBB0_6:
	mov	w8, #1
LBB0_7:
	mov	w0, #0
	str	w8, [x19, #4]
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_HL_QUEUE_SIZE_IN_BYTES,8,3     ; @HL_QUEUE_SIZE_IN_BYTES
	.comm	_HL_PAGE_SIZE,8,3               ; @HL_PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong queue type %d during init\n"

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