	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_switch_change
_handle_switch_change:                  ## @handle_switch_change
	.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
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movslq	%ebx, %r12
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movb	%dl, %al
	shll	$4, %eax
	movl	%eax, 4(%r9)
	movl	(%rcx), %eax
	movl	%eax, 4(%r8,%rdi,8)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	$6, %rbx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r13d
	movl	%ebx, %ecx
	shlq	%cl, %r13
	btq	%rbx, %r12
	jae	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%r14), %edi
	movq	24(%r14), %rsi
	addq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_cpqhp_slot_find
	movq	%rax, %r9
	movq	(%r14), %rdi
	movq	16(%r14), %r8
	leaq	1(%rdi), %rax
	movabsq	$-3689348814741910323, %rcx     ## imm = 0xCCCCCCCCCCCCCCCD
	mulq	%rcx
	shrq	$2, %rdx
	andq	$-2, %rdx
	leaq	(%rdx,%rdx,4), %rax
	negq	%rax
	addq	%rdi, %rax
	incq	%rax
	movq	%rax, (%r14)
	movl	%ebx, (%r8,%rdi,8)
	movslq	8(%r14), %rdx
	movl	%edx, %eax
	sarl	$16, %eax
	xorl	%esi, %esi
	btl	%ebx, %eax
	setb	%sil
	leal	7(%rbx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	andl	$2, %eax
	orl	%esi, %eax
	movl	%eax, (%r9)
	xorl	%eax, %eax
	movq	_INT_SWITCH_OPEN@GOTPCREL(%rip), %rcx
	testq	%rdx, %r13
	sete	%dl
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_INT_SWITCH_CLOSE@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpqsbd:  Switch interrupt received.\n"

	.comm	_INT_SWITCH_OPEN,4,2            ## @INT_SWITCH_OPEN
	.comm	_INT_SWITCH_CLOSE,4,2           ## @INT_SWITCH_CLOSE
	.no_dead_strip	_handle_switch_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_switch_change
_handle_switch_change:                  ; @handle_switch_change
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w0, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	mov	x22, #0
	mov	w20, #0
	sxtw	x21, w21
	mov	w23, #1
	mov	x24, #-3689348814741910324
	movk	x24, #52429
	mov	w25, #10
Lloh2:
	adrp	x26, _INT_SWITCH_CLOSE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _INT_SWITCH_CLOSE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _INT_SWITCH_OPEN@GOTPAGE
Lloh5:
	ldr	x27, [x27, _INT_SWITCH_OPEN@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, #6
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x28, x23, x22
	tst	x28, x21
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	add	x1, x22, x8
	mov	w2, #0
	bl	_cpqhp_slot_find
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	add	x10, x9, #1
	umulh	x11, x10, x24
	lsr	x11, x11, #3
	msub	x10, x11, x25, x10
	str	x10, [x19]
	add	x8, x8, x9, lsl #3
	str	w22, [x8]
	add	w20, w20, #1
	ldrsw	x9, [x19, #8]
	asr	w10, w9, #16
	lsr	w11, w10, w22
	add	w12, w22, #7
	asr	w10, w10, w12
	and	w10, w10, #0x2
	bfxil	w10, w11, #0, #1
	tst	x28, x9
	cset	w9, eq
	lsl	w9, w9, #4
	stp	w10, w9, [x0]
	csel	x9, x26, x27, eq
	ldr	w9, [x9]
	str	w9, [x8, #4]
	b	LBB0_2
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpqsbd:  Switch interrupt received.\n"

	.comm	_INT_SWITCH_OPEN,4,2            ; @INT_SWITCH_OPEN
	.comm	_INT_SWITCH_CLOSE,4,2           ; @INT_SWITCH_CLOSE
	.no_dead_strip	_handle_switch_change
.subsections_via_symbols
