	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_read_mwait              ## -- Begin function pt_pkt_read_mwait
	.p2align	4, 0x90
_pt_pkt_read_mwait:                     ## @pt_pkt_read_mwait
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.5:
	movq	_ptps_mwait@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	leaq	(%rbx,%rax,4), %rax
	cmpq	%rax, (%rdx)
	jae	LBB0_7
## %bb.6:
	movq	_pte_eos@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_pte_internal@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movq	%rdi, %r14
	movq	_pt_opcs_mwait@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	leaq	(%rbx,%rax,4), %rdi
	movq	_pt_pl_mwait_hints_size@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_pt_pkt_read_value
	movq	%rax, 8(%r14)
	movslq	(%r12), %rax
	leaq	(%rbx,%rax,4), %rax
	movslq	(%r13), %rcx
	leaq	(%rax,%rcx,4), %rdi
	movq	_pt_pl_mwait_ext_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pt_pkt_read_value
	movq	%rax, (%r14)
	movl	(%r15), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pte_internal,4,2               ## @pte_internal
	.comm	_ptps_mwait,4,2                 ## @ptps_mwait
	.comm	_pte_eos,4,2                    ## @pte_eos
	.comm	_pt_opcs_mwait,4,2              ## @pt_opcs_mwait
	.comm	_pt_pl_mwait_hints_size,4,2     ## @pt_pl_mwait_hints_size
	.comm	_pt_pl_mwait_ext_size,4,2       ## @pt_pl_mwait_ext_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pt_pkt_read_mwait              ; -- Begin function pt_pkt_read_mwait
	.p2align	2
_pt_pkt_read_mwait:                     ; @pt_pkt_read_mwait
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_5
; %bb.2:
	cbz	x2, LBB0_5
; %bb.3:
	ldr	x8, [x2]
Lloh0:
	adrp	x21, _ptps_mwait@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ptps_mwait@GOTPAGEOFF]
	ldrsw	x9, [x21]
	add	x9, x20, x9, lsl #2
	cmp	x8, x9
	b.hs	LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _pte_eos@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pte_eos@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _pte_internal@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pte_internal@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	x19, x0
Lloh6:
	adrp	x22, _pt_opcs_mwait@GOTPAGE
Lloh7:
	ldr	x22, [x22, _pt_opcs_mwait@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x0, x20, x8, lsl #2
Lloh8:
	adrp	x23, _pt_pl_mwait_hints_size@GOTPAGE
Lloh9:
	ldr	x23, [x23, _pt_pl_mwait_hints_size@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_pt_pkt_read_value
	str	x0, [x19, #8]
	ldrsw	x8, [x22]
	add	x8, x20, x8, lsl #2
	ldrsw	x9, [x23]
	add	x0, x8, x9, lsl #2
Lloh10:
	adrp	x8, _pt_pl_mwait_ext_size@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pt_pl_mwait_ext_size@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_pt_pkt_read_value
	str	x0, [x19]
	ldr	w0, [x21]
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_pte_internal,4,2               ; @pte_internal
	.comm	_ptps_mwait,4,2                 ; @ptps_mwait
	.comm	_pte_eos,4,2                    ; @pte_eos
	.comm	_pt_opcs_mwait,4,2              ; @pt_opcs_mwait
	.comm	_pt_pl_mwait_hints_size,4,2     ; @pt_pl_mwait_hints_size
	.comm	_pt_pl_mwait_ext_size,4,2       ; @pt_pl_mwait_ext_size
.subsections_via_symbols
