	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_regs                       ## -- Begin function set_regs
	.p2align	4, 0x90
_set_regs:                              ## @set_regs
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	(%rsi), %r15d
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_EFL_SECURE
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	28(%rbx), %edi
	callq	_CS_SECURE
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	92(%rbx), %eax
	movl	%eax, 96(%r12)
	movl	88(%rbx), %eax
	movl	%eax, 92(%r12)
	movl	84(%rbx), %eax
	movl	%eax, 88(%r12)
	movups	68(%rbx), %xmm0
	movups	%xmm0, 72(%r12)
	movups	52(%rbx), %xmm0
	movups	%xmm0, 56(%r12)
	movups	36(%rbx), %xmm0
	movups	%xmm0, 40(%r12)
	movl	%r15d, (%r12)
	movups	20(%rbx), %xmm0
	movups	%xmm0, 24(%r12)
	movl	(%r14), %edi
	movq	_PCB_FULL_IRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_pcb_flags
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCB_FULL_IRET,4,2              ## @PCB_FULL_IRET
	.comm	_TF_HASSEGS,4,2                 ## @TF_HASSEGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_regs                       ; -- Begin function set_regs
	.p2align	2
_set_regs:                              ; @set_regs
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w21, [x1]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_EFL_SECURE
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x20, #28]
	bl	_CS_SECURE
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w8, [x20, #92]
	str	w8, [x22, #96]
	ldur	d0, [x20, #84]
	str	d0, [x22, #88]
	ldur	q0, [x20, #68]
	stur	q0, [x22, #72]
	ldur	q0, [x20, #52]
	stur	q0, [x22, #56]
	ldur	q0, [x20, #36]
	stur	q0, [x22, #40]
	str	w21, [x22]
	ldur	q0, [x20, #20]
	stur	q0, [x22, #24]
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _PCB_FULL_IRET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCB_FULL_IRET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_set_pcb_flags
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_4:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCB_FULL_IRET,4,2              ; @PCB_FULL_IRET
	.comm	_TF_HASSEGS,4,2                 ; @TF_HASSEGS
.subsections_via_symbols
