	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_get_root_bridge_busnr
_try_get_root_bridge_busnr:             ## @try_get_root_bridge_busnr
	.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
	movq	%rsi, %r14
	movl	$-1, (%rsi)
	movq	_METHOD_NAME__CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_get_root_bridge_busnr_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	callq	_acpi_walk_resources
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	cmpl	$-1, (%r14)
	je	LBB0_2
## %bb.3:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_METHOD_NAME__CRS,4,2           ## @METHOD_NAME__CRS
	.comm	_get_root_bridge_busnr_callback,4,2 ## @get_root_bridge_busnr_callback
	.comm	_AE_ERROR,4,2                   ## @AE_ERROR
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_try_get_root_bridge_busnr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_get_root_bridge_busnr
_try_get_root_bridge_busnr:             ; @try_get_root_bridge_busnr
	.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, x1
	mov	w8, #-1
	str	w8, [x1]
Lloh0:
	adrp	x8, _METHOD_NAME__CRS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _METHOD_NAME__CRS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _get_root_bridge_busnr_callback@GOTPAGE
Lloh4:
	ldr	x8, [x8, _get_root_bridge_busnr_callback@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_acpi_walk_resources
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _AE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
LBB0_4:
	ldr	w20, [x8]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_METHOD_NAME__CRS,4,2           ; @METHOD_NAME__CRS
	.comm	_get_root_bridge_busnr_callback,4,2 ; @get_root_bridge_busnr_callback
	.comm	_AE_ERROR,4,2                   ; @AE_ERROR
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_try_get_root_bridge_busnr
.subsections_via_symbols
