	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux_arch_prctl               ## -- Begin function linux_arch_prctl
	.p2align	4, 0x90
_linux_arch_prctl:                      ## @linux_arch_prctl
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	_arch_prctl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rsi), %edx
	movl	4(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_LINUX_CTR2
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	4(%rbx), %eax
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_6
## %bb.3:
	movq	_PCB_FULL_IRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_pcb_flags
	movl	4(%rbx), %eax
	movl	%eax, (%r14)
	movq	__ugssel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	addq	$4, %r14
LBB0_8:
	movl	4(%rbx), %edi
	callq	_PTRIN
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_copyout                        ## TAILCALL
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movl	4(%rbx), %eax
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_6
## %bb.5:
	movq	_PCB_FULL_IRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_pcb_flags
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	movq	__ufssel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_6:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_arch_prctl,4,2                 ## @arch_prctl
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%x, %p"

	.comm	_VM_MAXUSER_ADDRESS,4,2         ## @VM_MAXUSER_ADDRESS
	.comm	_PCB_FULL_IRET,4,2              ## @PCB_FULL_IRET
	.comm	__ugssel,4,2                    ## @_ugssel
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	__ufssel,4,2                    ## @_ufssel
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux_arch_prctl               ; -- Begin function linux_arch_prctl
	.p2align	2
_linux_arch_prctl:                      ; @linux_arch_prctl
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _arch_prctl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _arch_prctl@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	w2, w3, [x1]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_LINUX_CTR2
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.1:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x21, #4]
Lloh7:
	adrp	x9, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.3:
Lloh10:
	adrp	x8, _PCB_FULL_IRET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCB_FULL_IRET@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_pcb_flags
	mov	w0, #0
	ldr	w8, [x21, #4]
	str	w8, [x19]
Lloh13:
	adrp	x8, __ugssel@GOTPAGE
Lloh14:
	ldr	x8, [x8, __ugssel@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9, #4]
	b	LBB0_11
LBB0_4:
	add	x19, x19, #4
LBB0_5:
	ldr	w0, [x21, #4]
	bl	_PTRIN
	mov	x1, x0
	mov	x0, x19
	mov	w2, #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
	b	_copyout
LBB0_6:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	ldr	w8, [x21, #4]
Lloh18:
	adrp	x9, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.8:
Lloh21:
	adrp	x8, _PCB_FULL_IRET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCB_FULL_IRET@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_pcb_flags
	mov	w0, #0
	ldr	w8, [x21, #4]
	str	w8, [x19, #4]
Lloh24:
	adrp	x8, __ufssel@GOTPAGE
Lloh25:
	ldr	x8, [x8, __ufssel@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
	b	LBB0_11
LBB0_9:
Lloh27:
	adrp	x8, _EPERM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.comm	_arch_prctl,4,2                 ; @arch_prctl
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%x, %p"

	.comm	_VM_MAXUSER_ADDRESS,4,2         ; @VM_MAXUSER_ADDRESS
	.comm	_PCB_FULL_IRET,4,2              ; @PCB_FULL_IRET
	.comm	__ugssel,4,2                    ; @_ugssel
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	__ufssel,4,2                    ; @_ufssel
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
