	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_bus_check_device
_acpi_bus_check_device:                 ## @acpi_bus_check_device
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	-24(%rbp), %rsi
	callq	_acpi_bus_get_device
	testq	%rax, %rax
	je	LBB0_1
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	-24(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.2:
	movq	(%rdi), %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_4
LBB0_5:
	callq	_acpi_bus_get_status
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:
	movq	%rbx, %rdi
	callq	_STRUCT_TO_INT
	movq	%rax, %r14
	movq	-24(%rbp), %rax
	movq	(%rax), %rdi
	callq	_STRUCT_TO_INT
	cmpq	%rax, %r14
	je	LBB0_14
## %bb.7:
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_13
LBB0_4:
	movq	$0, (%rdi)
	jmp	LBB0_14
LBB0_10:
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.12:
	leaq	L_.str.1(%rip), %rdi
LBB0_13:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device insertion detected\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device removal detected\n"

	.no_dead_strip	_acpi_bus_check_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_bus_check_device
_acpi_bus_check_device:                 ; @acpi_bus_check_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_1
; %bb.3:
	ldp	x19, x8, [x0]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
LBB0_5:
	bl	_acpi_bus_get_status
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_1
; %bb.6:
	mov	x0, x19
	bl	_STRUCT_TO_INT
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	bl	_STRUCT_TO_INT
	cmp	x20, x0
	b.eq	LBB0_1
; %bb.7:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.8:
	cbnz	x19, LBB0_11
; %bb.9:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_10:
	str	xzr, [x0]
	b	LBB0_1
LBB0_11:
	cbnz	x8, LBB0_1
; %bb.12:
	cbz	x19, LBB0_1
; %bb.13:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device insertion detected\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device removal detected\n"

	.no_dead_strip	_acpi_bus_check_device
.subsections_via_symbols
