	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function osf_current_sos
_osf_current_sos:                       ## @osf_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
	leaq	-48(%rbp), %rdi
	callq	_open_map
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_read_map
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	-80(%rbp), %r13
	leaq	-48(%rbp), %r14
                                        ## implicit-def: $r12
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	movl	(%rax), %eax
	orl	%ebx, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_osf_free_so
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_read_map
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	$16, %edi
	callq	_xmalloc
	movq	%rax, %r12
	movq	%rax, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rcx)
	movq	%rax, %r15
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	$0, (%r12)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_read_map
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_7:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_3:
	xorl	%r15d, %r15d
LBB0_11:
	leaq	-48(%rbp), %rdi
	callq	_close_map
LBB0_12:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_osf_current_sos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function osf_current_sos
_osf_current_sos:                       ; @osf_current_sos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	add	x0, sp, #8
	bl	_open_map
	cbz	w0, LBB0_9
; %bb.1:
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_read_map
	cbz	w0, LBB0_11
; %bb.2:
	mov	w21, #0
	mov	x22, #0
                                        ; implicit-def: $x20
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x23, x20
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	orr	w8, w8, w21
	cbnz	w8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x0, sp, #16
	bl	_osf_free_so
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_read_map
	mov	w21, #1
	cbnz	w0, LBB0_4
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #16
	bl	_xmalloc
	mov	x20, x0
	mov	x19, x0
	cbz	x22, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x20, [x23]
	mov	x19, x22
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #16
	bl	_memcpy
	str	xzr, [x20]
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_read_map
	mov	x22, x19
	cbnz	w0, LBB0_3
	b	LBB0_12
LBB0_9:
	mov	x19, #0
	b	LBB0_13
LBB0_10:
	mov	x19, x22
	b	LBB0_12
LBB0_11:
	mov	x19, #0
LBB0_12:
	add	x0, sp, #8
	bl	_close_map
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_osf_current_sos
.subsections_via_symbols
