	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_idle_bm_check
_acpi_idle_bm_check:                    ## @acpi_idle_bm_check
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$0, -12(%rbp)
	movq	_bm_check_disable@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_8
## %bb.1:
	movq	_ACPI_BITREG_BUS_MASTER_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-12(%rbp), %rsi
	callq	_acpi_read_bit_register
	cmpl	$0, -12(%rbp)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_acpi_write_bit_register
	jmp	LBB0_7
LBB0_3:
	movq	_errata@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	addq	$2, %rdi
	callq	_inb_p
	testb	$1, %al
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	addq	$10, %rdi
	callq	_inb_p
	testb	$1, %al
	je	LBB0_7
LBB0_6:
	movl	$1, -12(%rbp)
LBB0_7:
	movl	-12(%rbp), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bm_check_disable,8,3           ## @bm_check_disable
	.comm	_ACPI_BITREG_BUS_MASTER_STATUS,4,2 ## @ACPI_BITREG_BUS_MASTER_STATUS
	.comm	_errata,8,3                     ## @errata
	.no_dead_strip	_acpi_idle_bm_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_idle_bm_check
_acpi_idle_bm_check:                    ; @acpi_idle_bm_check
	.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
	mov	w0, #0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _bm_check_disable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bm_check_disable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_8
; %bb.1:
Lloh3:
	adrp	x19, _ACPI_BITREG_BUS_MASTER_STATUS@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ACPI_BITREG_BUS_MASTER_STATUS@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_acpi_read_bit_register
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_acpi_write_bit_register
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x19, _errata@GOTPAGE
Lloh6:
	ldr	x19, [x19, _errata@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.4:
	add	x0, x8, #2
	bl	_inb_p
	tbnz	w0, #0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	add	x0, x8, #10
	bl	_inb_p
	tbz	w0, #0, LBB0_7
LBB0_6:
	mov	w8, #1
	str	w8, [sp, #12]
LBB0_7:
	ldr	w0, [sp, #12]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_bm_check_disable,8,3           ; @bm_check_disable
	.comm	_ACPI_BITREG_BUS_MASTER_STATUS,4,2 ; @ACPI_BITREG_BUS_MASTER_STATUS
	.comm	_errata,8,3                     ; @errata
	.no_dead_strip	_acpi_idle_bm_check
.subsections_via_symbols
