	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function piix4_poweroff_probe
_piix4_poweroff_probe:                  ## @piix4_poweroff_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pm_dev@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	%rdi, %r14
	movq	_piix4_pm_io_region@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	callq	_pci_request_region
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_4:
	movq	%r14, (%r15)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_pci_resource_start
	movq	_io_offset@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_piix4_poweroff@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_pm_power_off@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pm_dev,8,3                     ## @pm_dev
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_piix4_pm_io_region,4,2         ## @piix4_pm_io_region
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PIIX4 PM IO registers"

L_.str.1:                               ## @.str.1
	.asciz	"failed to request PM IO registers: %d\n"

	.comm	_io_offset,4,2                  ## @io_offset
	.comm	_piix4_poweroff,4,2             ## @piix4_poweroff
	.comm	_pm_power_off,4,2               ## @pm_power_off
	.no_dead_strip	_piix4_poweroff_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function piix4_poweroff_probe
_piix4_poweroff_probe:                  ; @piix4_poweroff_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x21, _pm_dev@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pm_dev@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_5
LBB0_2:
	mov	x20, x0
Lloh5:
	adrp	x22, _piix4_pm_io_region@GOTPAGE
Lloh6:
	ldr	x22, [x22, _piix4_pm_io_region@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	bl	_pci_request_region
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	str	x20, [x21]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_pci_resource_start
Lloh11:
	adrp	x8, _io_offset@GOTPAGE
Lloh12:
	ldr	x8, [x8, _io_offset@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
Lloh14:
	adrp	x8, _piix4_poweroff@GOTPAGE
Lloh15:
	ldr	x8, [x8, _piix4_poweroff@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _pm_power_off@GOTPAGE
Lloh18:
	ldr	x9, [x9, _pm_power_off@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_pm_dev,8,3                     ; @pm_dev
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_piix4_pm_io_region,4,2         ; @piix4_pm_io_region
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PIIX4 PM IO registers"

l_.str.1:                               ; @.str.1
	.asciz	"failed to request PM IO registers: %d\n"

	.comm	_io_offset,4,2                  ; @io_offset
	.comm	_piix4_poweroff,4,2             ; @piix4_poweroff
	.comm	_pm_power_off,4,2               ; @pm_power_off
	.no_dead_strip	_piix4_poweroff_probe
.subsections_via_symbols
