	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_program_pt_config_registers
_kv_program_pt_config_registers:        ## @kv_program_pt_config_registers
	.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
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.1:
	movq	%rsi, %rbx
	movl	(%rsi), %edi
	cmpl	$-1, %edi
	je	LBB0_17
## %bb.2:
	xorl	%r15d, %r15d
	movq	_KV_CONFIGREG_CACHE@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %eax
	movzbl	12(%rbx), %ecx
	shll	%cl, %eax
	andl	16(%rbx), %eax
	orl	%eax, %r15d
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	20(%rbx), %edi
	addq	$20, %rbx
	cmpl	$-1, %edi
	je	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %eax
	cmpl	(%r14), %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_RREG32_SMC
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_RREG32_DIDT
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_RREG32
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %edx
	movzbl	12(%rbx), %ecx
	shll	%cl, %edx
	movl	16(%rbx), %esi
	andl	%esi, %edx
	notl	%esi
	andl	%eax, %esi
	movl	4(%rbx), %eax
	orl	%r15d, %esi
	orl	%edx, %esi
	cmpl	$129, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	callq	_WREG32_SMC
	jmp	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	callq	_WREG32_DIDT
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	callq	_WREG32
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KV_CONFIGREG_CACHE,4,2         ## @KV_CONFIGREG_CACHE
	.no_dead_strip	_kv_program_pt_config_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_program_pt_config_registers
_kv_program_pt_config_registers:        ; @kv_program_pt_config_registers
	.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
	cbz	x1, LBB0_18
; %bb.1:
	ldr	w0, [x1]
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.2:
	mov	w21, #0
	add	x19, x1, #12
Lloh0:
	adrp	x20, _KV_CONFIGREG_CACHE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _KV_CONFIGREG_CACHE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w9, [x19, #-4]
	ldr	w10, [x19, #4]
	lsl	w8, w8, w9
	and	w8, w8, w10
	orr	w21, w8, w21
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #8]
	add	x19, x19, #20
	cmn	w0, #1
	b.eq	LBB0_17
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x19, #-8]
	ldr	w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_RREG32_SMC
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_RREG32_DIDT
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_RREG32
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w10, w9, [x19]
	bic	w11, w0, w9
	ldp	w8, w12, [x19, #-8]
	lsl	w10, w12, w10
	and	w9, w10, w9
	orr	w10, w11, w21
	orr	w1, w10, w9
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x19, #-12]
	bl	_WREG32_SMC
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x19, #-12]
	bl	_WREG32_DIDT
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	w0, [x19, #-12]
	bl	_WREG32
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #0
	b	LBB0_4
LBB0_17:
	mov	w0, #0
	b	LBB0_19
LBB0_18:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KV_CONFIGREG_CACHE,4,2         ; @KV_CONFIGREG_CACHE
	.no_dead_strip	_kv_program_pt_config_registers
.subsections_via_symbols
