	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sunos_current_sos
_sunos_current_sos:                     ## @sunos_current_sos
	.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	$0, -72(%rbp)
	movq	_debug_base@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_locate_base
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_13
LBB0_2:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_first_link_map_member
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %rbx
	leaq	-72(%rbp), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_xfree@GOTPCREL(%rip), %r14
	movq	_SO_NAME_MAX_PATH_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_free_so
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_discard_cleanups
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$40, %edi
	callq	_xmalloc
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_make_cleanup
	movq	%rax, %r13
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	$4, %edi
	callq	_xmalloc
	movq	%rax, 32(%r15)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_make_cleanup
	movl	$4, %edi
	callq	_xmalloc
	movq	32(%r15), %rcx
	movq	%rax, 24(%rcx)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_make_cleanup
	movq	32(%r15), %rax
	movq	24(%rax), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	32(%r15), %rax
	movq	24(%rax), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_read_memory
	movq	%r15, %rdi
	callq	_LM_NEXT
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_LM_NAME
	movl	(%r12), %edx
	decl	%edx
	movl	%eax, %edi
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	callq	_target_read_string
	movl	-44(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_safe_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warning
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rdi
	movq	-64(%rbp), %rsi
	movl	(%r12), %edx
	decl	%edx
	callq	_strncpy
	movq	(%r15), %rax
	movslq	(%r12), %rcx
	movb	$0, -1(%rcx,%rax)
	movq	-64(%rbp), %rdi
	callq	_xfree
	movl	16(%r15), %edi
	movq	(%r15), %rsi
	callq	_strcpy
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_match_main
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 8(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	addq	$8, %r15
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_12:
	movq	-72(%rbp), %r14
LBB0_13:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_base,8,3                 ## @debug_base
	.comm	_SO_NAME_MAX_PATH_SIZE,4,2      ## @SO_NAME_MAX_PATH_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"current_sos: Can't read pathname for load map: %s\n"

	.no_dead_strip	_sunos_current_sos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sunos_current_sos
_sunos_current_sos:                     ; @sunos_current_sos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	str	xzr, [sp, #24]
Lloh0:
	adrp	x19, _debug_base@GOTPAGE
Lloh1:
	ldr	x19, [x19, _debug_base@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	bl	_locate_base
	str	x0, [x19]
	cbz	x0, LBB0_13
LBB0_2:
	bl	_first_link_map_member
	cbz	x0, LBB0_13
; %bb.3:
	mov	x20, x0
	add	x24, sp, #24
Lloh2:
	adrp	x19, _xfree@GOTPAGE
Lloh3:
	ldr	x19, [x19, _xfree@GOTPAGEOFF]
Lloh4:
	adrp	x25, _SO_NAME_MAX_PATH_SIZE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SO_NAME_MAX_PATH_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_free_so
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_discard_cleanups
	cbz	x20, LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #40
	bl	_xmalloc
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_make_cleanup
	mov	x22, x0
	mov	x0, x23
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	w0, #4
	bl	_xmalloc
	mov	x1, x0
	str	x0, [x23, #32]
	mov	x0, x19
	bl	_make_cleanup
	mov	w0, #4
	bl	_xmalloc
	mov	x1, x0
	ldr	x8, [x23, #32]
	str	x0, [x8, #24]
	mov	x0, x19
	bl	_make_cleanup
	ldr	x8, [x23, #32]
	ldr	x0, [x8, #24]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x23, #32]
	ldr	x1, [x8, #24]
	mov	x0, x20
	mov	w2, #4
	bl	_read_memory
	mov	x0, x23
	bl	_LM_NEXT
	mov	x20, x0
	mov	x0, x23
	bl	_LM_NAME
	ldr	w8, [x25]
	sub	w2, w8, #1
	add	x1, sp, #8
	add	x3, sp, #20
	bl	_target_read_string
	ldr	w0, [sp, #20]
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_safe_strerror
	mov	x1, x0
	mov	x0, x21
	bl	_warning
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x23]
	ldr	x1, [sp, #8]
	ldr	w8, [x25]
	sub	w2, w8, #1
	bl	_strncpy
	ldr	x8, [x23]
	ldrsw	x9, [x25]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	ldr	x0, [sp, #8]
	bl	_xfree
	ldr	w0, [x23, #16]
	ldr	x1, [x23]
	bl	_strcpy
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x23]
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_match_main
	cbnz	x0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x8, x23
	str	xzr, [x8, #8]!
	str	x23, [x24]
	mov	x24, x8
	b	LBB0_5
LBB0_12:
	ldr	x0, [sp, #24]
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_base,8,3                 ; @debug_base
	.comm	_SO_NAME_MAX_PATH_SIZE,4,2      ; @SO_NAME_MAX_PATH_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"current_sos: Can't read pathname for load map: %s\n"

	.no_dead_strip	_sunos_current_sos
.subsections_via_symbols
