	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_elf_hints
_write_elf_hints:                       ## @write_elf_hints
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_asprintf
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	movq	-48(%rbp), %rdi
	callq	_mkstemp
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movl	%ebx, %edi
	movl	$292, %esi                      ## imm = 0x124
	callq	_fchmod
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	callq	_fdopen
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_8:
	movq	_ELFHINTS_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movabsq	$206158430209, %rax             ## imm = 0x3000000001
	movq	%rax, -104(%rbp)
	movq	$0, -72(%rbp)
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_ndirs@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.9:
	movq	_dirs@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%r12), %rdi
	callq	_strlen
	movq	%rax, %rbx
	cmpl	$1, %r14d
	je	LBB0_12
## %bb.10:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,8), %rdi
	callq	_strlen
	addq	%rax, %rbx
	incq	%rbx
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_11
LBB0_12:
	movq	%rbx, -88(%rbp)
	incq	%rbx
	movq	%rbx, -96(%rbp)
	leaq	-104(%rbp), %rdi
	movl	$1, %esi
	movl	$48, %edx
	movq	%r15, %rcx
	callq	_fwrite
	cmpl	$48, %eax
	je	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_14:
	movq	_ndirs@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_22
## %bb.15:
	movq	_dirs@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_fputs
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_17:
	cmpl	$2, (%rbx)
	jl	LBB0_22
## %bb.18:
	movl	$1, %r12d
	leaq	L_.str.7(%rip), %r13
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jge	LBB0_22
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_fprintf
	testq	%rax, %rax
	jns	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-48(%rbp), %rdx
	movl	$1, %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_21
LBB0_22:
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_putc
	movq	_EOF@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	_fclose
	cmpq	(%rbx), %rax
	jne	LBB0_25
LBB0_24:
	movq	-48(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_25:
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_rename
	cmpl	$-1, %eax
	jne	LBB0_27
## %bb.26:
	movq	-48(%rbp), %rdx
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_err
LBB0_27:
	movq	-48(%rbp), %rdi
	callq	_free
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.XXXXXX"

L_.str.1:                               ## @.str.1
	.asciz	"Out of memory"

L_.str.2:                               ## @.str.2
	.asciz	"mkstemp(%s)"

L_.str.3:                               ## @.str.3
	.asciz	"fchmod(%s)"

L_.str.4:                               ## @.str.4
	.asciz	"wb"

L_.str.5:                               ## @.str.5
	.asciz	"fdopen(%s)"

	.comm	_ELFHINTS_MAGIC,4,2             ## @ELFHINTS_MAGIC
	.comm	_ndirs,4,2                      ## @ndirs
	.comm	_dirs,8,3                       ## @dirs
L_.str.6:                               ## @.str.6
	.asciz	"%s: write error"

	.comm	_EOF,8,3                        ## @EOF
L_.str.7:                               ## @.str.7
	.asciz	":%s"

L_.str.8:                               ## @.str.8
	.asciz	"rename %s to %s"

	.no_dead_strip	_write_elf_hints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function write_elf_hints
lCPI0_0:
	.long	1                               ; 0x1
	.long	48                              ; 0x30
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_write_elf_hints:                       ; @write_elf_hints
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	bl	_asprintf
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_mkstemp
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x2, [sp, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	mov	x0, x20
	mov	w1, #292
	bl	_fchmod
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
	ldr	x2, [sp, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_fdopen
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	x2, [sp, #8]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
Lloh12:
	adrp	x8, _ELFHINTS_MAGIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ELFHINTS_MAGIC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #56]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	str	xzr, [sp, #48]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh17:
	adrp	x23, _ndirs@GOTPAGE
Lloh18:
	ldr	x23, [x23, _ndirs@GOTPAGEOFF]
	ldr	w25, [x23]
Lloh19:
	adrp	x24, _dirs@GOTPAGE
Lloh20:
	ldr	x24, [x24, _dirs@GOTPAGEOFF]
	cmp	w25, #1
	b.lt	LBB0_12
; %bb.9:
	ldr	x22, [x24]
	ldr	x0, [x22]
	bl	_strlen
	mov	x21, x0
	cmp	w25, #1
	b.eq	LBB0_13
; %bb.10:
	add	x22, x22, #8
	sub	x25, x25, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22], #8
	bl	_strlen
	add	x8, x0, x21
	add	x21, x8, #1
	subs	x25, x25, #1
	b.ne	LBB0_11
	b	LBB0_13
LBB0_12:
	mov	x21, #0
LBB0_13:
	add	x8, x21, #1
	stp	x8, x21, [sp, #24]
	add	x0, sp, #16
	mov	w1, #1
	mov	w2, #48
	mov	x3, x20
	bl	_fwrite
	cmp	w0, #48
	b.eq	LBB0_15
; %bb.14:
	ldr	x2, [sp, #8]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_15:
	ldr	w8, [x23]
Lloh23:
	adrp	x25, _EOF@GOTPAGE
Lloh24:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.16:
	ldr	x8, [x24]
	ldr	x0, [x8]
	mov	x1, x20
	bl	_fputs
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.17:
	ldr	x2, [sp, #8]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_18:
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_23
; %bb.19:
	mov	w26, #1
Lloh27:
	adrp	x21, l_.str.7@PAGE
Lloh28:
	add	x21, x21, l_.str.7@PAGEOFF
Lloh29:
	adrp	x22, l_.str.6@PAGE
Lloh30:
	add	x22, x22, l_.str.6@PAGEOFF
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x23]
	cmp	x26, x8
	b.ge	LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x2, [x8, x26, lsl #3]
	mov	x0, x20
	mov	x1, x21
	bl	_fprintf
	tbz	x0, #63, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x2, [sp, #8]
	mov	w0, #1
	mov	x1, x22
	bl	_err
	b	LBB0_20
LBB0_23:
	mov	w0, #0
	mov	x1, x20
	bl	_putc
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_25
; %bb.24:
	mov	x0, x20
	bl	_fclose
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_26
LBB0_25:
	ldr	x2, [sp, #8]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_26:
	ldr	x0, [sp, #8]
	mov	x1, x19
	bl	_rename
	cmn	w0, #1
	b.ne	LBB0_28
; %bb.27:
	ldr	x2, [sp, #8]
	str	x19, [sp]
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_28:
	ldr	x0, [sp, #8]
	bl	_free
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.XXXXXX"

l_.str.1:                               ; @.str.1
	.asciz	"Out of memory"

l_.str.2:                               ; @.str.2
	.asciz	"mkstemp(%s)"

l_.str.3:                               ; @.str.3
	.asciz	"fchmod(%s)"

l_.str.4:                               ; @.str.4
	.asciz	"wb"

l_.str.5:                               ; @.str.5
	.asciz	"fdopen(%s)"

	.comm	_ELFHINTS_MAGIC,4,2             ; @ELFHINTS_MAGIC
	.comm	_ndirs,4,2                      ; @ndirs
	.comm	_dirs,8,3                       ; @dirs
l_.str.6:                               ; @.str.6
	.asciz	"%s: write error"

	.comm	_EOF,8,3                        ; @EOF
l_.str.7:                               ; @.str.7
	.asciz	":%s"

l_.str.8:                               ; @.str.8
	.asciz	"rename %s to %s"

	.no_dead_strip	_write_elf_hints
.subsections_via_symbols
