	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_power_well_post_enable
_hsw_power_well_post_enable:            ## @hsw_power_well_post_enable
	.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	%rsi, %rbx
	movq	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	(%r14), %r15
	movq	_VGA_RSRC_LEGACY_IO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_vga_get_uninterruptible
	movq	_VGA_MSR_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb
	movq	_VGA_MSR_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_outb
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_vga_put
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gen8_irq_power_well_post_enable ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VGA_RSRC_LEGACY_IO,4,2         ## @VGA_RSRC_LEGACY_IO
	.comm	_VGA_MSR_READ,4,2               ## @VGA_MSR_READ
	.comm	_VGA_MSR_WRITE,4,2              ## @VGA_MSR_WRITE
	.no_dead_strip	_hsw_power_well_post_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_power_well_post_enable
_hsw_power_well_post_enable:            ; @hsw_power_well_post_enable
	.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
	mov	x19, x1
	mov	x20, x0
	cbz	w2, LBB0_2
; %bb.1:
	ldr	x21, [x20]
Lloh0:
	adrp	x22, _VGA_RSRC_LEGACY_IO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VGA_RSRC_LEGACY_IO@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_vga_get_uninterruptible
Lloh2:
	adrp	x8, _VGA_MSR_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VGA_MSR_READ@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_inb
Lloh5:
	adrp	x8, _VGA_MSR_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VGA_MSR_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_outb
	ldr	w1, [x22]
	mov	x0, x21
	bl	_vga_put
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, 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
	b	_gen8_irq_power_well_post_enable
LBB0_4:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VGA_RSRC_LEGACY_IO,4,2         ; @VGA_RSRC_LEGACY_IO
	.comm	_VGA_MSR_READ,4,2               ; @VGA_MSR_READ
	.comm	_VGA_MSR_WRITE,4,2              ; @VGA_MSR_WRITE
	.no_dead_strip	_hsw_power_well_post_enable
.subsections_via_symbols
