	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function std_irq_setup
_std_irq_setup:                         ## @std_irq_setup
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rax
	movq	_SI_BT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	_si_bt_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movq	_IRQF_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_DEVICE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	leaq	24(%rbx), %rdi
	movq	_IPMI_BT_INTMASK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPMI_BT_INTMASK_ENABLE_IRQ_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*24(%rbx)
	jmp	LBB0_4
LBB0_5:
	movq	_si_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movq	_IRQF_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_DEVICE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movl	16(%rbx), %edi
	movq	_DEVICE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	$0, 8(%rbx)
	movl	%r15d, %r14d
	jmp	LBB0_7
LBB0_4:
	movq	_std_irq_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	16(%rbx), %edi
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI_BT,8,3                      ## @SI_BT
	.comm	_si_bt_irq_handler,4,2          ## @si_bt_irq_handler
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_IRQF_DISABLED,4,2              ## @IRQF_DISABLED
	.comm	_DEVICE_NAME,4,2                ## @DEVICE_NAME
	.comm	_IPMI_BT_INTMASK_REG,4,2        ## @IPMI_BT_INTMASK_REG
	.comm	_IPMI_BT_INTMASK_ENABLE_IRQ_BIT,4,2 ## @IPMI_BT_INTMASK_ENABLE_IRQ_BIT
	.comm	_si_irq_handler,4,2             ## @si_irq_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s unable to claim interrupt %d, running polled\n"

	.comm	_std_irq_cleanup,4,2            ## @std_irq_cleanup
L_.str.1:                               ## @.str.1
	.asciz	"Using irq %d\n"

	.no_dead_strip	_std_irq_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function std_irq_setup
_std_irq_setup:                         ; @std_irq_setup
	.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	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SI_BT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SI_BT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x21, _DEVICE_NAME@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DEVICE_NAME@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _si_bt_irq_handler@GOTPAGE
Lloh6:
	ldr	x8, [x8, _si_bt_irq_handler@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IRQF_DISABLED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IRQF_DISABLED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w3, [x21]
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	ldr	x8, [x0, #24]!
Lloh14:
	adrp	x9, _IPMI_BT_INTMASK_REG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IPMI_BT_INTMASK_REG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
Lloh17:
	adrp	x9, _IPMI_BT_INTMASK_ENABLE_IRQ_BIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IPMI_BT_INTMASK_ENABLE_IRQ_BIT@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x9]
	blr	x8
	b	LBB0_6
LBB0_4:
Lloh20:
	adrp	x8, _si_irq_handler@GOTPAGE
Lloh21:
	ldr	x8, [x8, _si_irq_handler@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _IRQF_DISABLED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IRQF_DISABLED@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w3, [x21]
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_5:
	ldr	w0, [x19, #16]
	ldr	w2, [x21]
	ldr	x3, [x19, #8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	str	xzr, [x19, #8]
	b	LBB0_8
LBB0_6:
Lloh31:
	adrp	x8, _std_irq_cleanup@GOTPAGE
Lloh32:
	ldr	x8, [x8, _std_irq_cleanup@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w0, [x19, #16]
	ldr	x2, [x19, #8]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SI_BT,8,3                      ; @SI_BT
	.comm	_si_bt_irq_handler,4,2          ; @si_bt_irq_handler
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_IRQF_DISABLED,4,2              ; @IRQF_DISABLED
	.comm	_DEVICE_NAME,4,2                ; @DEVICE_NAME
	.comm	_IPMI_BT_INTMASK_REG,4,2        ; @IPMI_BT_INTMASK_REG
	.comm	_IPMI_BT_INTMASK_ENABLE_IRQ_BIT,4,2 ; @IPMI_BT_INTMASK_ENABLE_IRQ_BIT
	.comm	_si_irq_handler,4,2             ; @si_irq_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s unable to claim interrupt %d, running polled\n"

	.comm	_std_irq_cleanup,4,2            ; @std_irq_cleanup
l_.str.1:                               ; @.str.1
	.asciz	"Using irq %d\n"

	.no_dead_strip	_std_irq_setup
.subsections_via_symbols
