	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wr_sc
LCPI0_0:
	.long	4                               ## 0x4
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wr_sc:                                 ## @wr_sc
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdi), %r14d
	movl	%r14d, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %rbx
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.1:
	movq	8(%r12), %r8
	cmpl	$1, %r14d
	jne	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_3:
	movl	%r14d, %edx
	andl	$-2, %edx
	movq	%rbx, %rsi
	addq	$24, %rsi
	xorl	%ecx, %ecx
	movq	%r8, %rdi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, -24(%rsi)
	movq	$0, -16(%rsi)
	leaq	8(%rdi), %rax
	movq	%rax, -8(%rsi)
	movq	$0, (%rsi)
	addq	$2, %rcx
	addq	$16, %rdi
	addq	$32, %rsi
	cmpq	%rcx, %rdx
	jne	LBB0_4
LBB0_5:
	testb	$1, %r14b
	je	LBB0_7
## %bb.6:
	leaq	(%r8,%rcx,8), %rax
	shlq	$4, %rcx
	movq	%rax, (%rbx,%rcx)
	movq	$0, 8(%rbx,%rcx)
LBB0_7:
	movq	(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	_coff_secdef_type@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r14, %rdx
	shlq	$4, %rdx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, 8(%rbx,%rdi)
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	8(%rax), %rsi
	cmpq	%rcx, (%rsi)
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%rax), %rsi
	movq	8(%rsi), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rbx,%rdi), %rsi
	je	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	addq	$16, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_12
	jmp	LBB0_19
LBB0_14:
	xorl	%eax, %eax
	cmpl	$2, %r14d
	jl	LBB0_29
## %bb.15:
	leaq	-96(%rbp), %r12
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	shlq	$4, %r13
	addq	$-16, %r13
	xorl	%r15d, %r15d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%rcx), %rax
	movq	%rax, -104(%rbp)
	movq	_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-144(%rbp), %rsi
	callq	_sysroff_swap_sc_out
	addq	$16, %r15
	cmpq	%r15, %r13
	je	LBB0_28
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx,%r15), %r14
	movq	$0, -80(%rbp)
	movq	$0, -96(%rbp)
	movq	_abfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bfd_get_file_flags
	movq	_EXEC_P@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	testq	%r14, %r14
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$0, -144(%rbp)
	movq	16(%r14), %rax
	movq	(%rax), %rax
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, -144(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r12)
	movq	16(%rbx,%r15), %r14
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	$1, -144(%rbp)
	xorl	%eax, %eax
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	xorps	%xmm0, %xmm0
	movq	%rax, -56(%rbp)
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	(%r14), %rdi
	movq	_CONCAT_SIMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [4,3,3,3]
	movups	%xmm1, -140(%rbp)
	movabsq	$12884901891, %rax              ## imm = 0x300000003
	movq	%rax, -124(%rbp)
	movups	%xmm0, (%r12)
	movq	$0, 16(%r12)
	callq	_section_translate
	movq	%rax, -112(%rbp)
	movq	%rax, %rdi
	callq	_strlen
	movq	_CONTENTS_CODE@GOTPCREL(%rip), %rcx
	cmpl	$1, %eax
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-112(%rbp), %rax
	movl	(%rax), %eax
	addl	$-66, %eax
	movq	_CONTENTS_CODE@GOTPCREL(%rip), %rcx
	testl	$-3, %eax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_CONTENTS_DATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_28:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
LBB0_29:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_coff_secdef_type,8,3           ## @coff_secdef_type
	.comm	_abfd,4,2                       ## @abfd
	.comm	_EXEC_P,4,2                     ## @EXEC_P
	.comm	_CONCAT_SIMPLE,4,2              ## @CONCAT_SIMPLE
	.comm	_CONTENTS_DATA,8,3              ## @CONTENTS_DATA
	.comm	_CONTENTS_CODE,8,3              ## @CONTENTS_CODE
	.comm	_file,4,2                       ## @file
	.no_dead_strip	_wr_sc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function wr_sc
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
lCPI0_1:
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wr_sc:                                 ; @wr_sc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	d9, d8, [sp, #112]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x1
	mov	x21, x0
	ldr	w19, [x0]
	mov	x0, x19
	mov	w1, #16
	bl	_calloc
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x8, [x21, #8]
	cmp	w19, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	and	x9, x19, #0xfffffff8
Lloh0:
	adrp	x10, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x10, lCPI0_0@PAGEOFF]
	add	x10, x0, #64
	dup.2d	v1, x8
	movi.2d	v3, #0000000000000000
	mov	w11, #48
	dup.2d	v4, x11
	mov	w11, #32
	dup.2d	v5, x11
	mov	w11, #16
	dup.2d	v6, x11
	mov	w11, #8
	dup.2d	v7, x11
	mov	x11, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	shl.2d	v16, v0, #3
	add.2d	v2, v1, v16
	add.2d	v16, v2, v6
	mov.16b	v17, v3
	add.2d	v18, v2, v5
	sub	x12, x10, #64
	st2.2d	{ v2, v3 }, [x12]
	mov.16b	v19, v3
	sub	x12, x10, #32
	st2.2d	{ v16, v17 }, [x12]
	add	x12, x10, #128
	st2.2d	{ v18, v19 }, [x10], #32
	add.2d	v16, v2, v4
	mov.16b	v17, v3
	st2.2d	{ v16, v17 }, [x10]
	add.2d	v0, v0, v7
	mov	x10, x12
	subs	x11, x11, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x19
	b.eq	LBB0_8
LBB0_6:
	add	x8, x8, x9, lsl #3
	add	x10, x0, x9, lsl #4
	add	x10, x10, #8
	sub	x9, x19, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	stp	x8, xzr, [x10, #-8]
	add	x8, x8, #8
	add	x10, x10, #16
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.9:
Lloh2:
	adrp	x9, _coff_secdef_type@GOTPAGE
Lloh3:
	ldr	x9, [x9, _coff_secdef_type@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x10, x0, #8
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x8, [x12]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_16
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x11, [x8, #8]
	ldr	x11, [x11]
	cmp	x11, x9
	ccmp	w19, #1, #8, eq
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x11, [x8, #16]
	ldr	x11, [x11, #8]
	mov	x13, x19
	mov	x12, x10
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x14, [x12, #-8]
	cmp	x11, x14
	b.eq	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	add	x12, x12, #16
	subs	x13, x13, #1
	b.ne	LBB0_14
	b	LBB0_11
LBB0_16:
	cmp	w19, #2
	b.lt	LBB0_27
; %bb.17:
	add	x8, sp, #16
	add	x20, x8, #48
	add	x21, x8, #80
	add	x22, x0, #24
	sub	x23, x19, #1
Lloh5:
	adrp	x25, _EXEC_P@GOTPAGE
Lloh6:
	ldr	x25, [x25, _EXEC_P@GOTPAGEOFF]
Lloh7:
	adrp	x8, lCPI0_1@PAGE
Lloh8:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
Lloh9:
	adrp	x26, _CONCAT_SIMPLE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _CONCAT_SIMPLE@GOTPAGEOFF]
Lloh11:
	adrp	x27, _CONTENTS_CODE@GOTPAGE
Lloh12:
	ldr	x27, [x27, _CONTENTS_CODE@GOTPAGEOFF]
	movi.2s	v8, #3
Lloh13:
	adrp	x28, _file@GOTPAGE
Lloh14:
	ldr	x28, [x28, _file@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	w0, [x28]
	add	x1, sp, #16
	bl	_sysroff_swap_sc_out
	add	x22, x22, #16
	subs	x23, x23, #1
	b.eq	LBB0_28
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x22]
	str	xzr, [sp, #80]
	str	xzr, [sp, #64]
Lloh15:
	adrp	x8, _abfd@GOTPAGE
Lloh16:
	ldr	x8, [x8, _abfd@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_bfd_get_file_flags
	ldr	w8, [x25]
	and	w8, w8, w0
	cbz	x24, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	cbz	w8, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	str	wzr, [sp, #16]
	ldr	x8, [x24, #16]
	ldr	x8, [x8]
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	cmp	w8, #0
	cset	w8, eq
	str	w8, [sp, #16]
	stp	xzr, xzr, [x21]
	ldur	x24, [x22, #-8]
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x8, #0
	mov	w9, #1
	str	w9, [sp, #16]
LBB0_24:                                ;   in Loop: Header=BB0_19 Depth=1
	str	x8, [sp, #104]
	ldr	x8, [x24, #8]
	ldr	x8, [x8, #8]
	str	x8, [sp, #96]
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x24]
	ldr	w8, [x26]
	str	w8, [sp, #88]
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	stur	q0, [sp, #20]
	stur	d8, [sp, #36]
	stp	xzr, xzr, [x20, #8]
	str	xzr, [x20]
	bl	_section_translate
	str	x0, [sp, #48]
	bl	_strlen
	mov	x8, x27
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [sp, #48]
	ldr	w8, [x8]
	sub	w8, w8, #66
	tst	w8, #0xfffffffd
Lloh18:
	adrp	x8, _CONTENTS_DATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CONTENTS_DATA@GOTPAGEOFF]
	csel	x8, x8, x27, eq
	b	LBB0_18
LBB0_27:
	mov	w0, #0
	b	LBB0_29
LBB0_28:
	sub	w0, w19, #1
LBB0_29:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #112]              ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_coff_secdef_type,8,3           ; @coff_secdef_type
	.comm	_abfd,4,2                       ; @abfd
	.comm	_EXEC_P,4,2                     ; @EXEC_P
	.comm	_CONCAT_SIMPLE,4,2              ; @CONCAT_SIMPLE
	.comm	_CONTENTS_DATA,8,3              ; @CONTENTS_DATA
	.comm	_CONTENTS_CODE,8,3              ; @CONTENTS_CODE
	.comm	_file,4,2                       ; @file
	.no_dead_strip	_wr_sc
.subsections_via_symbols
