	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpet_disable                   ## -- Begin function hpet_disable
	.p2align	4, 0x90
_hpet_disable:                          ## @hpet_disable
	.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
	xorl	%eax, %eax
	callq	_is_hpet_capable
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_hpet_address@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_hpet_virt_address@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.3:
	movq	_HPET_CFG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_hpet_readl
	movq	_hpet_legacy_int_enabled@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_HPET_CFG_LEGACY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	notq	%rdx
	andq	%rdx, %rax
	movq	$0, (%rcx)
LBB0_5:
	movq	_HPET_CFG_ENABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	notq	%rdi
	andq	%rax, %rdi
	movl	(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hpet_writel                    ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hpet_address,4,2               ## @hpet_address
	.comm	_hpet_virt_address,4,2          ## @hpet_virt_address
	.comm	_HPET_CFG,4,2                   ## @HPET_CFG
	.comm	_hpet_legacy_int_enabled,8,3    ## @hpet_legacy_int_enabled
	.comm	_HPET_CFG_LEGACY,8,3            ## @HPET_CFG_LEGACY
	.comm	_HPET_CFG_ENABLE,8,3            ## @HPET_CFG_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpet_disable                   ; -- Begin function hpet_disable
	.p2align	2
_hpet_disable:                          ; @hpet_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_is_hpet_capable
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _hpet_address@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hpet_address@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _hpet_virt_address@GOTPAGE
Lloh4:
	ldr	x9, [x9, _hpet_virt_address@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_5
; %bb.2:
Lloh6:
	adrp	x19, _HPET_CFG@GOTPAGE
Lloh7:
	ldr	x19, [x19, _HPET_CFG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_hpet_readl
Lloh8:
	adrp	x8, _hpet_legacy_int_enabled@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hpet_legacy_int_enabled@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.3:
Lloh10:
	adrp	x9, _HPET_CFG_LEGACY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HPET_CFG_LEGACY@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	bic	x0, x0, x9
	str	xzr, [x8]
LBB0_4:
Lloh13:
	adrp	x8, _HPET_CFG_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HPET_CFG_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	bic	x0, x0, x8
	ldr	w1, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hpet_writel
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_hpet_address,4,2               ; @hpet_address
	.comm	_hpet_virt_address,4,2          ; @hpet_virt_address
	.comm	_HPET_CFG,4,2                   ; @HPET_CFG
	.comm	_hpet_legacy_int_enabled,8,3    ; @hpet_legacy_int_enabled
	.comm	_HPET_CFG_LEGACY,8,3            ; @HPET_CFG_LEGACY
	.comm	_HPET_CFG_ENABLE,8,3            ; @HPET_CFG_ENABLE
.subsections_via_symbols
