	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_hides_ac97_lpc
_asus_hides_ac97_lpc:                   ## @asus_hides_ac97_lpc
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PCI_VENDOR_ID_ASUSTEK@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	8(%rbx), %rax
	movq	_PCI_DEVICE_ID_VIA_8237@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_pci_read_config_byte
	movl	-12(%rbp), %edx
	testb	$-64, %dl
	je	LBB0_6
## %bb.3:
	andl	$-193, %edx
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_pci_write_config_byte
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_pci_read_config_byte
	movl	-12(%rbp), %edx
	testb	$-64, %dl
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_pci_info
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_pci_info
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_ASUSTEK,8,3      ## @PCI_VENDOR_ID_ASUSTEK
	.comm	_PCI_DEVICE_ID_VIA_8237,8,3     ## @PCI_DEVICE_ID_VIA_8237
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Onboard AC97/MC97 devices continue to play 'hide and seek'! 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enabled onboard AC97/MC97 devices\n"

	.no_dead_strip	_asus_hides_ac97_lpc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_hides_ac97_lpc
_asus_hides_ac97_lpc:                   ; @asus_hides_ac97_lpc
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCI_VENDOR_ID_ASUSTEK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_VENDOR_ID_ASUSTEK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _PCI_DEVICE_ID_VIA_8237@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_DEVICE_ID_VIA_8237@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #80
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	tst	w8, #0xc0
	b.eq	LBB0_7
; %bb.3:
	and	w2, w8, #0xffffff3f
	mov	x0, x19
	mov	w1, #80
	bl	_pci_write_config_byte
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #80
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	tst	w8, #0xc0
	b.eq	LBB0_5
; %bb.4:
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_pci_info
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_ASUSTEK,8,3      ; @PCI_VENDOR_ID_ASUSTEK
	.comm	_PCI_DEVICE_ID_VIA_8237,8,3     ; @PCI_DEVICE_ID_VIA_8237
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Onboard AC97/MC97 devices continue to play 'hide and seek'! 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enabled onboard AC97/MC97 devices\n"

	.no_dead_strip	_asus_hides_ac97_lpc
.subsections_via_symbols
