	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_root_bridge_busnr_callback
_get_root_bridge_busnr_callback:        ## @get_root_bridge_busnr_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	_ACPI_RESOURCE_TYPE_ADDRESS16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_ACPI_RESOURCE_TYPE_ADDRESS32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_ACPI_RESOURCE_TYPE_ADDRESS64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_3:
	leaq	-32(%rbp), %rsi
	callq	_acpi_resource_to_address64
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	jle	LBB0_6
## %bb.4:
	movq	-24(%rbp), %rcx
	movq	_ACPI_BUS_NUMBER_RANGE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	-16(%rbp), %rcx
	movq	%rcx, (%rbx)
	addq	%rcx, %rax
	decq	%rax
	movq	%rax, 8(%rbx)
LBB0_6:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_RESOURCE_TYPE_ADDRESS16,8,3 ## @ACPI_RESOURCE_TYPE_ADDRESS16
	.comm	_ACPI_RESOURCE_TYPE_ADDRESS32,8,3 ## @ACPI_RESOURCE_TYPE_ADDRESS32
	.comm	_ACPI_RESOURCE_TYPE_ADDRESS64,8,3 ## @ACPI_RESOURCE_TYPE_ADDRESS64
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ACPI_BUS_NUMBER_RANGE,8,3      ## @ACPI_BUS_NUMBER_RANGE
	.no_dead_strip	_get_root_bridge_busnr_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_root_bridge_busnr_callback
_get_root_bridge_busnr_callback:        ; @get_root_bridge_busnr_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ACPI_RESOURCE_TYPE_ADDRESS16@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_RESOURCE_TYPE_ADDRESS16@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _ACPI_RESOURCE_TYPE_ADDRESS32@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ACPI_RESOURCE_TYPE_ADDRESS32@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _ACPI_RESOURCE_TYPE_ADDRESS64@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ACPI_RESOURCE_TYPE_ADDRESS64@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	add	x1, sp, #8
	bl	_acpi_resource_to_address64
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x9, [sp, #16]
Lloh9:
	adrp	x10, _ACPI_BUS_NUMBER_RANGE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ACPI_BUS_NUMBER_RANGE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [sp, #24]
	add	x8, x8, x9
	sub	x8, x8, #1
	stp	x9, x8, [x19]
LBB0_4:
Lloh12:
	adrp	x8, _AE_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_RESOURCE_TYPE_ADDRESS16,8,3 ; @ACPI_RESOURCE_TYPE_ADDRESS16
	.comm	_ACPI_RESOURCE_TYPE_ADDRESS32,8,3 ; @ACPI_RESOURCE_TYPE_ADDRESS32
	.comm	_ACPI_RESOURCE_TYPE_ADDRESS64,8,3 ; @ACPI_RESOURCE_TYPE_ADDRESS64
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ACPI_BUS_NUMBER_RANGE,8,3      ; @ACPI_BUS_NUMBER_RANGE
	.no_dead_strip	_get_root_bridge_busnr_callback
.subsections_via_symbols
