	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddb_irq_init
_ddb_irq_init:                          ## @ddb_irq_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_INTERRUPT_ENABLE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_ddbwritel
	movq	_MSI1_ENABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ddbwritel
	movq	_MSI2_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ddbwritel
	movq	_MSI3_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ddbwritel
	movq	_MSI4_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ddbwritel
	movq	_MSI5_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ddbwritel
	movq	_MSI6_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ddbwritel
	movq	_MSI7_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ddbwritel
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_pci_irq_vector
	movq	_ddb_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rcx
	movl	%eax, %edi
	movl	%r15d, %edx
	movq	%rbx, %r8
	callq	_request_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	cmpl	$2, (%rbx)
	movl	$268435200, %eax                ## imm = 0xFFFFF00
	movl	$268435215, %esi                ## imm = 0xFFFFF0F
	cmovel	%eax, %esi
	movl	(%r13), %edx
	movl	$15, %eax
	cmovel	%eax, %r14d
	movq	%rbx, %rdi
	callq	_ddbwritel
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ddbwritel
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_INTERRUPT_ENABLE,4,2           ## @INTERRUPT_ENABLE
	.comm	_MSI1_ENABLE,4,2                ## @MSI1_ENABLE
	.comm	_MSI2_ENABLE,4,2                ## @MSI2_ENABLE
	.comm	_MSI3_ENABLE,4,2                ## @MSI3_ENABLE
	.comm	_MSI4_ENABLE,4,2                ## @MSI4_ENABLE
	.comm	_MSI5_ENABLE,4,2                ## @MSI5_ENABLE
	.comm	_MSI6_ENABLE,4,2                ## @MSI6_ENABLE
	.comm	_MSI7_ENABLE,4,2                ## @MSI7_ENABLE
	.comm	_ddb_irq_handler,4,2            ## @ddb_irq_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ddbridge"

	.comm	_ddb_irq_handler0,4,2           ## @ddb_irq_handler0
	.comm	_ddb_irq_handler1,4,2           ## @ddb_irq_handler1
	.no_dead_strip	_ddb_irq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddb_irq_init
_ddb_irq_init:                          ; @ddb_irq_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	x19, x0
Lloh0:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x21, _INTERRUPT_ENABLE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _INTERRUPT_ENABLE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_ddbwritel
Lloh5:
	adrp	x22, _MSI1_ENABLE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MSI1_ENABLE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_ddbwritel
Lloh7:
	adrp	x8, _MSI2_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSI2_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ddbwritel
Lloh10:
	adrp	x8, _MSI3_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSI3_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ddbwritel
Lloh13:
	adrp	x8, _MSI4_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSI4_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ddbwritel
Lloh16:
	adrp	x8, _MSI5_ENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSI5_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ddbwritel
Lloh19:
	adrp	x8, _MSI6_ENABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSI6_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ddbwritel
Lloh22:
	adrp	x8, _MSI7_ENABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSI7_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_ddbwritel
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_pci_irq_vector
Lloh25:
	adrp	x8, _ddb_irq_handler@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ddb_irq_handler@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x3, l_.str@PAGE
Lloh29:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x20
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	ldr	w2, [x21]
	mov	w9, #65295
	movk	w9, #4095, lsl #16
	mov	w10, #268435200
	cmp	w8, #2
	csel	w1, w10, w9, eq
	mov	w8, #15
	csel	w21, w8, wzr, eq
	mov	x0, x19
	bl	_ddbwritel
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	bl	_ddbwritel
LBB0_2:
	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 AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_INTERRUPT_ENABLE,4,2           ; @INTERRUPT_ENABLE
	.comm	_MSI1_ENABLE,4,2                ; @MSI1_ENABLE
	.comm	_MSI2_ENABLE,4,2                ; @MSI2_ENABLE
	.comm	_MSI3_ENABLE,4,2                ; @MSI3_ENABLE
	.comm	_MSI4_ENABLE,4,2                ; @MSI4_ENABLE
	.comm	_MSI5_ENABLE,4,2                ; @MSI5_ENABLE
	.comm	_MSI6_ENABLE,4,2                ; @MSI6_ENABLE
	.comm	_MSI7_ENABLE,4,2                ; @MSI7_ENABLE
	.comm	_ddb_irq_handler,4,2            ; @ddb_irq_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ddbridge"

	.comm	_ddb_irq_handler0,4,2           ; @ddb_irq_handler0
	.comm	_ddb_irq_handler1,4,2           ; @ddb_irq_handler1
	.no_dead_strip	_ddb_irq_init
.subsections_via_symbols
