	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_bus_type_and_status
_acpi_bus_type_and_status:              ## @acpi_bus_type_and_status
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	leaq	-28(%rbp), %rsi
	callq	_acpi_get_type
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-28(%rbp), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_1
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_ACPI_BUS_TYPE_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	_ACPI_BUS_TYPE_THERMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_ACPI_BUS_TYPE_PROCESSOR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_acpi_bus_get_status_handle
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_1
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_2
LBB0_10:
	movq	_ACPI_BUS_TYPE_POWER@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_ACPI_STA_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ACPI_BUS_TYPE_DEVICE,4,2       ## @ACPI_BUS_TYPE_DEVICE
	.comm	_ACPI_BUS_TYPE_PROCESSOR,4,2    ## @ACPI_BUS_TYPE_PROCESSOR
	.comm	_ACPI_BUS_TYPE_THERMAL,4,2      ## @ACPI_BUS_TYPE_THERMAL
	.comm	_ACPI_STA_DEFAULT,8,3           ## @ACPI_STA_DEFAULT
	.comm	_ACPI_BUS_TYPE_POWER,4,2        ## @ACPI_BUS_TYPE_POWER
	.no_dead_strip	_acpi_bus_type_and_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_bus_type_and_status
_acpi_bus_type_and_status:              ; @acpi_bus_type_and_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #12
	bl	_acpi_get_type
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	ldr	w8, [sp, #12]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_1
; %bb.4:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh5:
	adrp	x8, _ACPI_BUS_TYPE_DEVICE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACPI_BUS_TYPE_DEVICE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
Lloh7:
	adrp	x8, _ACPI_BUS_TYPE_THERMAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ACPI_BUS_TYPE_THERMAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _ACPI_BUS_TYPE_PROCESSOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_BUS_TYPE_PROCESSOR@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_acpi_bus_get_status_handle
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_1
	b	LBB0_2
LBB0_9:
	mov	w0, #0
Lloh11:
	adrp	x8, _ACPI_BUS_TYPE_POWER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACPI_BUS_TYPE_POWER@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh13:
	adrp	x8, _ACPI_STA_DEFAULT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ACPI_STA_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ACPI_BUS_TYPE_DEVICE,4,2       ; @ACPI_BUS_TYPE_DEVICE
	.comm	_ACPI_BUS_TYPE_PROCESSOR,4,2    ; @ACPI_BUS_TYPE_PROCESSOR
	.comm	_ACPI_BUS_TYPE_THERMAL,4,2      ; @ACPI_BUS_TYPE_THERMAL
	.comm	_ACPI_STA_DEFAULT,8,3           ; @ACPI_STA_DEFAULT
	.comm	_ACPI_BUS_TYPE_POWER,4,2        ; @ACPI_BUS_TYPE_POWER
	.no_dead_strip	_acpi_bus_type_and_status
.subsections_via_symbols
