	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linux_exec_setregs
_linux_exec_setregs:                    ## @linux_exec_setregs
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r15
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_user_ldt_free
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r15)
	movq	_PCB_32BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_clear_pcb_flags
	movq	___LINUX_NPXCW__@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movq	_PCB_FULL_IRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_set_pcb_flags
	movq	_PSL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	(%rbx), %r12d
	movq	%rbx, %rdi
	movl	$56, %esi
	callq	_bzero
	movl	(%r13), %eax
	movl	%eax, 52(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 48(%rbx)
	movq	_PSL_USER@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	%r12d, (%rbx)
	movq	__udatasel@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	__ucodesel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	__ufssel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	__ugssel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_TF_HASSEGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_PCB_DBREGS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	testl	%esi, (%r15)
	je	LBB0_6
## %bb.3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
	movups	%xmm0, 24(%r15)
	movups	%xmm0, 8(%r15)
	movq	_curpcb@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_reset_dbregs
	movl	(%rbx), %esi
LBB0_5:
	movq	%r15, %rdi
	callq	_clear_pcb_flags
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fpstate_drop                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCB_32BIT,4,2                  ## @PCB_32BIT
	.comm	___LINUX_NPXCW__,4,2            ## @__LINUX_NPXCW__
	.comm	_PCB_FULL_IRET,4,2              ## @PCB_FULL_IRET
	.comm	_PSL_T,4,2                      ## @PSL_T
	.comm	_PSL_USER,4,2                   ## @PSL_USER
	.comm	__udatasel,8,3                  ## @_udatasel
	.comm	__ucodesel,4,2                  ## @_ucodesel
	.comm	__ufssel,4,2                    ## @_ufssel
	.comm	__ugssel,4,2                    ## @_ugssel
	.comm	_TF_HASSEGS,4,2                 ## @TF_HASSEGS
	.comm	_PCB_DBREGS,4,2                 ## @PCB_DBREGS
	.comm	_curpcb,8,3                     ## @curpcb
	.no_dead_strip	_linux_exec_setregs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linux_exec_setregs
_linux_exec_setregs:                    ; @linux_exec_setregs
	.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	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldp	x20, x21, [x0, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_user_ldt_free
LBB0_2:
	stp	xzr, xzr, [x20, #64]
Lloh0:
	adrp	x8, _PCB_32BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCB_32BIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_clear_pcb_flags
Lloh3:
	adrp	x8, ___LINUX_NPXCW__@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___LINUX_NPXCW__@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #56]
Lloh6:
	adrp	x8, _PCB_FULL_IRET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCB_FULL_IRET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_set_pcb_flags
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _PSL_T@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PSL_T@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w24, w9, w8
	mov	x0, x21
	mov	w1, #56
	bl	_bzero
	ldr	w8, [x23]
	stp	w22, w8, [x21, #48]
Lloh12:
	adrp	x8, _PSL_USER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PSL_USER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w8, w8, w24
	str	w8, [x21]
Lloh15:
	adrp	x8, __udatasel@GOTPAGE
Lloh16:
	ldr	x8, [x8, __udatasel@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x21, #40]
Lloh18:
	adrp	x9, __ucodesel@GOTPAGE
Lloh19:
	ldr	x9, [x9, __ucodesel@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	str	w9, [x21, #32]
	stp	x8, x8, [x21, #16]
Lloh21:
	adrp	x8, __ufssel@GOTPAGE
Lloh22:
	ldr	x8, [x8, __ufssel@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, __ugssel@GOTPAGE
Lloh25:
	ldr	x9, [x9, __ugssel@GOTPAGEOFF]
	str	w8, [x21, #12]
Lloh26:
	ldr	w8, [x9]
Lloh27:
	adrp	x9, _TF_HASSEGS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _TF_HASSEGS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #4]
	ldr	w8, [x20]
Lloh30:
	adrp	x21, _PCB_DBREGS@GOTPAGE
Lloh31:
	ldr	x21, [x21, _PCB_DBREGS@GOTPAGEOFF]
	ldr	w1, [x21]
	tst	w1, w8
	b.eq	LBB0_6
; %bb.3:
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #40]
	stur	q0, [x20, #24]
	stur	q0, [x20, #8]
Lloh32:
	adrp	x8, _curpcb@GOTPAGE
Lloh33:
	ldr	x8, [x8, _curpcb@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.4:
	bl	_reset_dbregs
	ldr	w1, [x21]
LBB0_5:
	mov	x0, x20
	bl	_clear_pcb_flags
LBB0_6:
	mov	x0, 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
	b	_fpstate_drop
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_PCB_32BIT,4,2                  ; @PCB_32BIT
	.comm	___LINUX_NPXCW__,4,2            ; @__LINUX_NPXCW__
	.comm	_PCB_FULL_IRET,4,2              ; @PCB_FULL_IRET
	.comm	_PSL_T,4,2                      ; @PSL_T
	.comm	_PSL_USER,4,2                   ; @PSL_USER
	.comm	__udatasel,8,3                  ; @_udatasel
	.comm	__ucodesel,4,2                  ; @_ucodesel
	.comm	__ufssel,4,2                    ; @_ufssel
	.comm	__ugssel,4,2                    ; @_ugssel
	.comm	_TF_HASSEGS,4,2                 ; @TF_HASSEGS
	.comm	_PCB_DBREGS,4,2                 ; @PCB_DBREGS
	.comm	_curpcb,8,3                     ; @curpcb
	.no_dead_strip	_linux_exec_setregs
.subsections_via_symbols
