	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function piix4_setup_aux
_piix4_setup_aux:                       ## @piix4_setup_aux
	.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	%rdi, %rbx
	leaq	-26(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdx
	callq	_pci_read_config_word
	movzwl	-26(%rbp), %eax
	testb	$1, %al
	jne	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	andw	$-16, %ax
	movw	%ax, -26(%rbp)
	je	LBB0_4
## %bb.5:
	movq	_SMBIOSIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_piix4_driver@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movzwl	%ax, %edi
	callq	_acpi_check_region
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:
	movzwl	-26(%rbp), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_request_region
	movzwl	-26(%rbp), %ecx
	movzwl	%cx, %edx
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	movzwl	-26(%rbp), %eax
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdi
	callq	_dev_dbg
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Auxiliary SMBus controller not enabled\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Auxiliary SMBus base address uninitialized\n"

	.comm	_SMBIOSIZE,4,2                  ## @SMBIOSIZE
	.comm	_piix4_driver,4,2               ## @piix4_driver
L_.str.2:                               ## @.str.2
	.asciz	"Auxiliary SMBus region 0x%x already in use!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.3:                               ## @.str.3
	.asciz	"Auxiliary SMBus Host Controller at 0x%x\n"

	.no_dead_strip	_piix4_setup_aux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function piix4_setup_aux
_piix4_setup_aux:                       ; @piix4_setup_aux
	.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	x1, x2
	mov	x19, x0
	add	x2, sp, #14
	bl	_pci_read_config_word
	ldrh	w8, [sp, #14]
	tbnz	w8, #0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	ands	w0, w8, #0xfff0
	strh	w0, [sp, #14]
	b.eq	LBB0_6
; %bb.3:
Lloh2:
	adrp	x20, _SMBIOSIZE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SMBIOSIZE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x21, _piix4_driver@GOTPAGE
Lloh5:
	ldr	x21, [x21, _piix4_driver@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_acpi_check_region
	cbnz	x0, LBB0_8
; %bb.4:
	ldrh	w0, [sp, #14]
	ldr	w1, [x20]
	ldr	w2, [x21]
	bl	_request_region
	ldrh	w2, [sp, #14]
	cbz	w0, LBB0_11
; %bb.5:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldrh	w0, [sp, #14]
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_dbg
LBB0_8:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Auxiliary SMBus controller not enabled\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Auxiliary SMBus base address uninitialized\n"

	.comm	_SMBIOSIZE,4,2                  ; @SMBIOSIZE
	.comm	_piix4_driver,4,2               ; @piix4_driver
l_.str.2:                               ; @.str.2
	.asciz	"Auxiliary SMBus region 0x%x already in use!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.3:                               ; @.str.3
	.asciz	"Auxiliary SMBus Host Controller at 0x%x\n"

	.no_dead_strip	_piix4_setup_aux
.subsections_via_symbols
