	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_gicv2m_acpi_probe
_arm_gicv2m_acpi_probe:                 ## @arm_gicv2m_acpi_probe
	.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
	movl	%edi, %ebx
	callq	_gic_get_bus
	movq	_GIC_BUS_ACPI@GOTPCREL(%rip), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %r14
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_gic_get_hw_rev
	cmpl	$2, %eax
	jg	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	callq	_device_set_desc
	movq	_BUS_PROBE_DEFAULT@GOTPCREL(%rip), %r14
LBB0_3:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIC_BUS_ACPI,8,3               ## @GIC_BUS_ACPI
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ARM Generic Interrupt Controller MSI/MSIX"

	.comm	_BUS_PROBE_DEFAULT,4,2          ## @BUS_PROBE_DEFAULT
	.no_dead_strip	_arm_gicv2m_acpi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_gicv2m_acpi_probe
_arm_gicv2m_acpi_probe:                 ; @arm_gicv2m_acpi_probe
	.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
	bl	_gic_get_bus
Lloh0:
	adrp	x8, _GIC_BUS_ACPI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIC_BUS_ACPI@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_gic_get_hw_rev
	cmp	w0, #2
	b.le	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_set_desc
Lloh7:
	adrp	x8, _BUS_PROBE_DEFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BUS_PROBE_DEFAULT@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GIC_BUS_ACPI,8,3               ; @GIC_BUS_ACPI
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ARM Generic Interrupt Controller MSI/MSIX"

	.comm	_BUS_PROBE_DEFAULT,4,2          ; @BUS_PROBE_DEFAULT
	.no_dead_strip	_arm_gicv2m_acpi_probe
.subsections_via_symbols
