	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cs_base_and_mask
_get_cs_base_and_mask:                  ## @get_cs_base_and_mask
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	_boot_cpu_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$22, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$15, %eax
	jne	LBB0_5
## %bb.2:
	movq	(%rdi), %rcx
	movq	_K8_REV_F@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rcx
	jge	LBB0_5
## %bb.3:
	movq	8(%rdi), %rax
	shlq	$4, %rdx
	movslq	%esi, %rcx
	movq	(%rax,%rdx), %rsi
	movq	8(%rax,%rdx), %rax
	movl	(%rsi,%rcx,4), %r14d
	movl	(%rax,%rcx,4), %ebx
	movl	$21, %edi
	movl	$31, %esi
	callq	_GENMASK
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	movl	$9, %edi
	movl	$15, %esi
	callq	_GENMASK
	movl	%eax, %r12d
	orl	%r13d, %r12d
	movl	$21, %edi
	movl	$29, %esi
	callq	_GENMASK
	movl	%eax, %r13d
	movl	$9, %edi
	movl	$15, %esi
	callq	_GENMASK
	orl	%r13d, %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %ecx
	jmp	LBB0_9
LBB0_5:
	movq	8(%rdi), %rcx
	shlq	$4, %rdx
	movslq	%esi, %rdi
	movq	(%rcx,%rdx), %rbx
	movq	8(%rcx,%rdx), %rcx
	movl	(%rbx,%rdi,4), %r14d
	sarl	%esi
	movslq	%esi, %rdx
	movl	(%rcx,%rdx,4), %ebx
	cmpl	$21, %eax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	$19, %edi
	jne	LBB0_7
## %bb.6:
	movl	$30, %esi
	jmp	LBB0_8
LBB0_4:
	movq	8(%rdi), %rax
	shlq	$4, %rdx
	movslq	%esi, %rcx
	movq	(%rax,%rdx), %rsi
	movq	8(%rax,%rdx), %rax
	movl	(%rsi,%rcx,4), %ebx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %r14d
	movl	$5, %edi
	movl	$15, %esi
	callq	_GENMASK
	andl	%ebx, %eax
	shll	$6, %eax
	movl	%eax, (%r12)
	movl	$19, %edi
	movl	$30, %esi
	callq	_GENMASK
	andl	%ebx, %eax
	shll	$8, %eax
	orl	%eax, (%r12)
	movl	$-1, (%r15)
	movl	$5, %edi
	movl	$15, %esi
	callq	_GENMASK
	movl	%eax, %ebx
	shll	$6, %ebx
	movl	$19, %edi
	movl	$30, %esi
	callq	_GENMASK
	shll	$8, %eax
	orl	%ebx, %eax
	notl	%eax
	andl	%eax, (%r15)
	movl	$5, %edi
	movl	$15, %esi
	callq	_GENMASK
	andl	%r14d, %eax
	shll	$6, %eax
	orl	%eax, (%r15)
	movl	$19, %edi
	movl	$30, %esi
	callq	_GENMASK
	movl	%eax, %ebx
	andl	%r14d, %ebx
	shll	$8, %ebx
	orl	(%r15), %ebx
	jmp	LBB0_10
LBB0_7:
	movl	$28, %esi
LBB0_8:
	callq	_GENMASK
	movq	%r12, %r15
	movl	%eax, %r13d
	movl	$5, %edi
	movl	$13, %esi
	callq	_GENMASK
	movl	%eax, %r12d
	orl	%r13d, %r12d
	movq	%r15, %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	$8, %ecx
	movl	%r12d, %eax
LBB0_9:
	andl	%r12d, %r14d
	shll	%cl, %r14d
	movl	%eax, %edx
	shll	%cl, %edx
	movl	%r14d, (%rsi)
	notl	%edx
	andl	%eax, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%edx, %ebx
LBB0_10:
	movl	%ebx, (%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_boot_cpu_data,4,2              ## @boot_cpu_data
	.comm	_K8_REV_F,8,3                   ## @K8_REV_F
	.no_dead_strip	_get_cs_base_and_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cs_base_and_mask
_get_cs_base_and_mask:                  ; @get_cs_base_and_mask
	.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
	mov	x19, x4
	mov	x20, x3
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _boot_cpu_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _boot_cpu_data@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #22
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #15
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _K8_REV_F@GOTPAGE
Lloh4:
	ldr	x10, [x10, _K8_REV_F@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.3:
	ldr	x8, [x0, #8]
	add	x8, x8, x2, lsl #4
	sbfiz	x9, x1, #2, #32
	ldp	x10, x8, [x8]
	ldr	w23, [x10, x9]
	ldr	w22, [x8, x9]
	mov	w0, #21
	mov	w1, #31
	bl	_GENMASK
	mov	x21, x0
	mov	w0, #9
	mov	w1, #15
	bl	_GENMASK
	orr	w24, w0, w21
	mov	w0, #21
	mov	w1, #29
	bl	_GENMASK
	mov	x21, x0
	mov	w0, #9
	mov	w1, #15
	bl	_GENMASK
	orr	w9, w0, w21
	mov	w8, #4
	b	LBB0_9
LBB0_4:
	ldr	x9, [x0, #8]
	add	x9, x9, x2, lsl #4
	ldp	x10, x9, [x9]
	ldr	w23, [x10, w1, sxtw #2]
	asr	w10, w1, #1
	ldr	w22, [x9, w10, sxtw #2]
	mov	w0, #19
	cmp	w8, #21
	b.ne	LBB0_7
; %bb.5:
	mov	w1, #30
	b	LBB0_8
LBB0_6:
	ldr	x8, [x0, #8]
	add	x8, x8, x2, lsl #4
	ldp	x9, x8, [x8]
	ldr	w22, [x9, w1, sxtw #2]
	asr	w9, w1, #1
	ldr	w21, [x8, w9, sxtw #2]
	mov	w0, #5
	mov	w1, #15
	bl	_GENMASK
	and	w8, w0, w22
	lsl	w8, w8, #6
	str	w8, [x20]
	mov	w0, #19
	mov	w1, #30
	bl	_GENMASK
	and	w8, w0, w22
	ldr	w9, [x20]
	orr	w8, w9, w8, lsl #8
	str	w8, [x20]
	mov	w8, #-1
	str	w8, [x19]
	mov	w0, #5
	mov	w1, #15
	bl	_GENMASK
	mov	x20, x0
	mov	w0, #19
	mov	w1, #30
	bl	_GENMASK
	lsl	w8, w0, #8
	orr	w8, w8, w20, lsl #6
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	w0, #5
	mov	w1, #15
	bl	_GENMASK
	and	w8, w0, w21
	ldr	w9, [x19]
	orr	w8, w9, w8, lsl #6
	str	w8, [x19]
	mov	w0, #19
	mov	w1, #30
	bl	_GENMASK
	and	w8, w0, w21
	ldr	w9, [x19]
	orr	w8, w9, w8, lsl #8
	b	LBB0_10
LBB0_7:
	mov	w1, #28
LBB0_8:
	bl	_GENMASK
	mov	x21, x0
	mov	w0, #5
	mov	w1, #13
	bl	_GENMASK
	orr	w24, w0, w21
	mov	w8, #8
	mov	x9, x24
LBB0_9:
	and	w10, w24, w23
	lsl	w10, w10, w8
	str	w10, [x20]
	lsl	w10, w9, w8
	and	w9, w9, w22
	lsl	w8, w9, w8
	orn	w8, w8, w10
LBB0_10:
	str	w8, [x19]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_boot_cpu_data,4,2              ; @boot_cpu_data
	.comm	_K8_REV_F,8,3                   ; @K8_REV_F
	.no_dead_strip	_get_cs_base_and_mask
.subsections_via_symbols
