	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_Init                     ## -- Begin function LSAPI_Init
	.p2align	4, 0x90
_LSAPI_Init:                            ## @LSAPI_Init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_g_inited@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	je	LBB0_1
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_geteuid
	movq	_s_uid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_s_secret@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_lsapi_sigpipe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_lsapi_signal
	movq	_SIGUSR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_lsapi_siguser1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_lsapi_signal
	movl	$2, %edi
	movl	$1, %esi
	callq	_dup2
	movq	_LSAPI_SOCK_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_req@GOTPCREL(%rip), %rdi
	callq	_LSAPI_InitRequest
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movl	$1, (%r14)
	xorl	%eax, %eax
	callq	_getppid
	movq	_s_ppid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_RTLD_LAZY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dlopen
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_dlsym
	movq	_pthread_atfork_func@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_g_inited,4,2                   ## @g_inited
	.comm	_s_uid,4,2                      ## @s_uid
	.comm	_s_secret,8,3                   ## @s_secret
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_lsapi_sigpipe,4,2              ## @lsapi_sigpipe
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_lsapi_siguser1,4,2             ## @lsapi_siguser1
	.comm	_g_req,4,2                      ## @g_req
	.comm	_LSAPI_SOCK_FILENO,4,2          ## @LSAPI_SOCK_FILENO
	.comm	_s_ppid,4,2                     ## @s_ppid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"libpthread.so"

	.comm	_RTLD_LAZY,4,2                  ## @RTLD_LAZY
L_.str.1:                               ## @.str.1
	.asciz	"pthread_atfork"

	.comm	_pthread_atfork_func,4,2        ## @pthread_atfork_func
	.comm	_SIGXFSZ,4,2                    ## @SIGXFSZ
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LSAPI_Init                     ; -- Begin function LSAPI_Init
	.p2align	2
_LSAPI_Init:                            ; @LSAPI_Init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _g_inited@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_inited@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	bl	_geteuid
Lloh2:
	adrp	x8, _s_uid@GOTPAGE
Lloh3:
	ldr	x8, [x8, _s_uid@GOTPAGEOFF]
Lloh4:
	str	w0, [x8]
Lloh5:
	adrp	x8, _s_secret@GOTPAGE
Lloh6:
	ldr	x8, [x8, _s_secret@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	xzr, [x8]
Lloh8:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _lsapi_sigpipe@GOTPAGE
Lloh12:
	ldr	x8, [x8, _lsapi_sigpipe@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_lsapi_signal
Lloh14:
	adrp	x8, _SIGUSR1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIGUSR1@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _lsapi_siguser1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _lsapi_siguser1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_lsapi_signal
	mov	w20, #1
	mov	w0, #2
	mov	w1, #1
	bl	_dup2
Lloh20:
	adrp	x8, _LSAPI_SOCK_FILENO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LSAPI_SOCK_FILENO@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x0, _g_req@GOTPAGE
Lloh24:
	ldr	x0, [x0, _g_req@GOTPAGEOFF]
	bl	_LSAPI_InitRequest
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	str	w20, [x19]
	bl	_getppid
Lloh25:
	adrp	x8, _s_ppid@GOTPAGE
Lloh26:
	ldr	x8, [x8, _s_ppid@GOTPAGEOFF]
Lloh27:
	str	w0, [x8]
Lloh28:
	adrp	x8, _RTLD_LAZY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RTLD_LAZY@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dlopen
	cbz	x0, LBB0_5
; %bb.4:
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dlsym
	mov	x8, x0
	mov	w0, #0
Lloh35:
	adrp	x9, _pthread_atfork_func@GOTPAGE
Lloh36:
	ldr	x9, [x9, _pthread_atfork_func@GOTPAGEOFF]
Lloh37:
	str	w8, [x9]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_g_inited,4,2                   ; @g_inited
	.comm	_s_uid,4,2                      ; @s_uid
	.comm	_s_secret,8,3                   ; @s_secret
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_lsapi_sigpipe,4,2              ; @lsapi_sigpipe
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_lsapi_siguser1,4,2             ; @lsapi_siguser1
	.comm	_g_req,4,2                      ; @g_req
	.comm	_LSAPI_SOCK_FILENO,4,2          ; @LSAPI_SOCK_FILENO
	.comm	_s_ppid,4,2                     ; @s_ppid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"libpthread.so"

	.comm	_RTLD_LAZY,4,2                  ; @RTLD_LAZY
l_.str.1:                               ; @.str.1
	.asciz	"pthread_atfork"

	.comm	_pthread_atfork_func,4,2        ; @pthread_atfork_func
	.comm	_SIGXFSZ,4,2                    ; @SIGXFSZ
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
.subsections_via_symbols
