	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ebus_setup_intr
_ebus_setup_intr:                       ## @ebus_setup_intr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	%edi, %r12d
	callq	_device_get_softc
	movq	%rax, %r15
	movq	_EBUS_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_1
LBB0_6:
	movl	%r12d, %edi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bus_generic_setup_intr         ## TAILCALL
LBB0_1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rman_get_start
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_INTIGN
	cmpq	8(%r15), %rax
	jne	LBB0_2
## %bb.3:
	movq	_intr_vectors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdx
	cmpq	$0, (%rax,%rbx,8)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rdx
LBB0_5:
	callq	_device_printf
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUS_PCI,4,2                   ## @EBUS_PCI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid interrupt vector 0x%lx\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_intr_vectors,8,3               ## @intr_vectors
L_.str.1:                               ## @.str.1
	.asciz	"invalid interrupt controller for vector 0x%lx\n"

	.no_dead_strip	_ebus_setup_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ebus_setup_intr
_ebus_setup_intr:                       ; @ebus_setup_intr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x23, x0
	bl	_device_get_softc
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _EBUS_PCI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EBUS_PCI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	x0, x23
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_bus_generic_setup_intr
LBB0_2:
	mov	x28, x0
	mov	x0, x25
	bl	_rman_get_start
	mov	x27, x0
	bl	_INTIGN
	ldr	x8, [x28, #8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _intr_vectors@GOTPAGE
Lloh4:
	ldr	x8, [x8, _intr_vectors@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8, x27, lsl #3]
	cbnz	x8, LBB0_1
; %bb.4:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x23
	mov	x2, x27
	bl	_device_printf
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUS_PCI,4,2                   ; @EBUS_PCI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid interrupt vector 0x%lx\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_intr_vectors,8,3               ; @intr_vectors
l_.str.1:                               ; @.str.1
	.asciz	"invalid interrupt controller for vector 0x%lx\n"

	.no_dead_strip	_ebus_setup_intr
.subsections_via_symbols
