	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dt_pid_fix_mod
_dt_pid_fix_mod:                        ## @dt_pid_fix_mod
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_PR_LMID_EVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%r12), %rdi
	movl	$96, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movq	(%r12), %rax
	movsbl	2(%rax), %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	(%r12), %rdi
	addq	$2, %rdi
	leaq	-72(%rbp), %rsi
	movl	$16, %edx
	callq	_strtoul
	movq	-72(%rbp), %r15
	cmpb	$96, (%r15)
	jne	LBB0_10
## %bb.8:
	movl	%eax, %r13d
	incq	%r15
	movq	%r15, %rdi
	movl	$96, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_10
## %bb.13:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r15
LBB0_4:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_Plmid_to_map
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %r15
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_Pobjname
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %rcx
	testq	%rax, %rax
	cmoveq	%rbx, %rcx
	movq	(%r12), %rdi
	movl	$8, %esi
	movl	%r13d, %edx
	callq	_dt_pid_objname
	jmp	LBB0_11
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.12:
	movq	%r15, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_PR_LMID_EVERY,4,2              ## @PR_LMID_EVERY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LM"

	.no_dead_strip	_dt_pid_fix_mod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dt_pid_fix_mod
_dt_pid_fix_mod:                        ; @dt_pid_fix_mod
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x8, _PR_LMID_EVERY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PR_LMID_EVERY@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	ldr	x0, [x0]
	mov	w1, #96
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_8
LBB0_2:
	mov	x24, #0
	b	LBB0_6
LBB0_3:
	ldr	x24, [x19]
LBB0_4:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_Plmid_to_map
	mov	x24, x0
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	bl	_Pobjname
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x3, x20, x0, eq
	ldr	x0, [x19]
	mov	w1, #8
	mov	x2, x23
	bl	_dt_pid_objname
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.7:
	mov	x0, x24
	sub	sp, x29, #48
	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
	ret
LBB0_8:
	ldr	x8, [x19]
	ldrsb	w0, [x8, #2]
	bl	_isdigit
	cbz	w0, LBB0_2
; %bb.9:
	ldr	x8, [x19]
	add	x0, x8, #2
	sub	x1, x29, #64
	mov	w2, #16
	bl	_strtoul
	ldur	x8, [x29, #-64]
	ldrb	w9, [x8]
	cmp	w9, #96
	b.ne	LBB0_2
; %bb.10:
	mov	x23, x0
	add	x24, x8, #1
	mov	x0, x24
	mov	w1, #96
	bl	_strchr
	cbnz	x0, LBB0_2
	b	LBB0_4
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_PR_LMID_EVERY,4,2              ; @PR_LMID_EVERY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LM"

	.no_dead_strip	_dt_pid_fix_mod
.subsections_via_symbols
