	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ismt_int_init
_ismt_int_init:                         ## @ismt_int_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_pci_enable_msi
	movq	8(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_4
LBB0_2:
	movl	4(%rdi), %esi
	movq	_ismt_do_msi_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %r8
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_pci_disable_msi
LBB0_4:
	movq	8(%rbx), %rdi
	movl	4(%rdi), %esi
	movq	_ismt_do_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r8
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_6:
	movl	$0, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_8:
	movl	$1, (%rbx)
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to use MSI interrupts, falling back to legacy\n"

	.comm	_ismt_do_msi_interrupt,4,2      ## @ismt_do_msi_interrupt
L_.str.1:                               ## @.str.1
	.asciz	"ismt-msi"

	.comm	_ismt_do_interrupt,4,2          ## @ismt_do_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.2:                               ## @.str.2
	.asciz	"ismt-intx"

L_.str.3:                               ## @.str.3
	.asciz	"no usable interrupts\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ismt_int_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ismt_int_init
_ismt_int_init:                         ; @ismt_int_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_pci_enable_msi
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_4
LBB0_2:
	ldr	w1, [x0, #4]
Lloh2:
	adrp	x8, _ismt_do_msi_interrupt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ismt_do_msi_interrupt@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x4, l_.str.1@PAGE
Lloh6:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_pci_disable_msi
LBB0_4:
	ldr	x0, [x19, #8]
	ldr	w1, [x0, #4]
Lloh7:
	adrp	x8, _ismt_do_interrupt@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ismt_do_interrupt@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x4, l_.str.2@PAGE
Lloh14:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	str	wzr, [x19]
	b	LBB0_8
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to use MSI interrupts, falling back to legacy\n"

	.comm	_ismt_do_msi_interrupt,4,2      ; @ismt_do_msi_interrupt
l_.str.1:                               ; @.str.1
	.asciz	"ismt-msi"

	.comm	_ismt_do_interrupt,4,2          ; @ismt_do_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.2:                               ; @.str.2
	.asciz	"ismt-intx"

l_.str.3:                               ; @.str.3
	.asciz	"no usable interrupts\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ismt_int_init
.subsections_via_symbols
