	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mic_request_threaded_irq       ## -- Begin function mic_request_threaded_irq
	.p2align	4, 0x90
_mic_request_threaded_irq:              ## @mic_request_threaded_irq
	.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	%r9d, %r12d
	movq	%r8, %rbx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	16(%rbp), %edx
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r9d, %esi
	callq	_mic_map_src_to_offset
	movq	%rax, %rsi
	movq	_MIC_NUM_OFFSETS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jae	LBB0_1
## %bb.4:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	$2, 16(%r13)
	jl	LBB0_10
## %bb.5:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_mic_get_available_vector
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	(%rax), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	(%r13), %rdi
	movslq	%eax, %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_3
LBB0_1:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_10:
	movq	%r13, %rdi
	movq	%rsi, %r12
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movq	%rbx, %r8
	callq	_mic_register_intr_callback
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%r13), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_dev_msi_enabled
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	$1, %eax
	movq	%r12, %rdx
	movl	%edx, %ecx
	shll	%cl, %eax
	movq	24(%r13), %rcx
	orl	%eax, (%rcx)
	movq	8(%r13), %rax
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	*(%rax)
LBB0_14:
	movq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_MK_COOKIE
	movq	%rax, %r14
	leaq	L_.str.5(%rip), %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_15
LBB0_9:
	movq	8(%r12), %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_BIT
	movq	24(%r13), %rcx
	orl	%eax, (%rcx,%r14,4)
	movq	8(%r13), %rax
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	*(%rax)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_MK_COOKIE
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %rbx
LBB0_15:
	movq	(%r13), %rdi
	movq	(%rbx), %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIC_NUM_OFFSETS,8,3            ## @MIC_NUM_OFFSETS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error mapping index %d to a valid source id.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"No MSIx vectors available for use.\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
L_.str.2:                               ## @.str.2
	.asciz	"request irq failed rc = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"irq: %d assigned for src: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"No available callback entries for use\n"

L_.str.5:                               ## @.str.5
	.asciz	"callback %d registered for src: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mic_request_threaded_irq       ; -- Begin function mic_request_threaded_irq
	.p2align	2
_mic_request_threaded_irq:              ; @mic_request_threaded_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x5
	mov	x23, x4
	mov	x25, x3
	mov	x24, x2
	mov	x27, x1
	mov	x20, x0
	ldr	x26, [x0]
	mov	x1, x5
	mov	x2, x6
	bl	_mic_map_src_to_offset
Lloh0:
	adrp	x8, _MIC_NUM_OFFSETS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIC_NUM_OFFSETS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	w8, [x20, #16]
	mov	x0, x20
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.2:
	bl	_mic_get_available_vector
	cbz	x0, LBB0_10
; %bb.3:
	mov	x21, x0
	ldr	x0, [x0]
	mov	x1, x27
	mov	x2, x24
	mov	w3, #0
	mov	x4, x25
	mov	x5, x23
	bl	_request_threaded_irq
	cbz	w0, LBB0_14
; %bb.4:
	mov	x23, x0
	ldr	x0, [x20]
	sxtw	x2, w23
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	b	LBB0_9
LBB0_5:
	ldr	x0, [x20]
	str	x19, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
LBB0_7:
	mov	x1, x22
	mov	x2, x27
	mov	x3, x24
	mov	x4, x23
	bl	_mic_register_intr_callback
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x0, [x20]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	mov	x0, x21
	bl	_PTR_ERR
	mov	x23, x0
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_10:
	ldr	x0, [x20]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_6
LBB0_11:
	mov	x0, x26
	bl	_pci_dev_msi_enabled
	cbz	x0, LBB0_13
; %bb.12:
	mov	w8, #1
	lsl	w8, w8, w22
	ldr	x9, [x20, #24]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	x2, x22
	mov	w3, #1
	blr	x8
LBB0_13:
	ldr	x1, [x21]
	mov	x0, #0
	bl	_MK_COOKIE
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_14:
	ldr	x23, [x21, #8]
	mov	x0, x22
	bl	_BIT
	ldr	x8, [x20, #24]
	lsl	x9, x23, #2
	ldr	w10, [x8, x9]
	orr	w10, w10, w0
	str	w10, [x8, x9]
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	w3, #1
	blr	x8
	mov	x0, x23
	mov	x1, x22
	bl	_MK_COOKIE
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	ldr	x0, [x20]
	ldr	x2, [x21]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
	bl	_dev_dbg
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MIC_NUM_OFFSETS,8,3            ; @MIC_NUM_OFFSETS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error mapping index %d to a valid source id.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"No MSIx vectors available for use.\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
l_.str.2:                               ; @.str.2
	.asciz	"request irq failed rc = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"irq: %d assigned for src: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"No available callback entries for use\n"

l_.str.5:                               ; @.str.5
	.asciz	"callback %d registered for src: %d\n"

.subsections_via_symbols
