	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assemble
_assemble:                              ## @assemble
	.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
	pushq	%rax
	movl	$16440, %eax                    ## imm = 0x4038
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	-16456(%rbp), %rsi
	callq	_r_file_mkstemp
	movl	$-1, %r13d
	cmpl	$-1, %eax
	je	LBB0_23
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	leaq	-16448(%rbp), %rsi
	callq	_r_file_mkstemp
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, -16436(%rbp)              ## 4-byte Spill
	leaq	L_.str.2(%rip), %rdi
	callq	_r_sys_getenv
	testq	%rax, %rax
	movq	%rbx, -16464(%rbp)              ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	cmpb	$0, (%rax)
	jne	LBB0_9
LBB0_5:
	movq	%rax, %rdi
	callq	_free
	cmpl	$64, (%r12)
	jne	LBB0_6
## %bb.7:
	movq	_ARM64_AS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	-16456(%rbp), %rdi
	callq	_free
	jmp	LBB0_23
LBB0_6:
	movq	_ARM32_AS@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	callq	_strdup
LBB0_9:
	movq	%rax, -16472(%rbp)              ## 8-byte Spill
	cmpl	$16, (%r12)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rdx
	callq	_r_str_newf
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	movl	%r15d, %edi
	callq	_close
	movq	%rbx, %rdi
	callq	_free
LBB0_11:
	movq	-16456(%rbp), %rdx
	movq	-16448(%rbp), %rcx
	leaq	L_.str.5(%rip), %rdi
	movq	-16472(%rbp), %r12              ## 8-byte Reload
	movq	%r12, %rsi
	callq	_r_sys_cmdf
	testl	%eax, %eax
	je	LBB0_12
## %bb.20:
	movq	-16456(%rbp), %rdx
	movq	-16448(%rbp), %rcx
	leaq	L_.str.9(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_eprintf
	leaq	L_.str.10(%rip), %rdi
LBB0_21:
	xorl	%eax, %eax
	callq	_eprintf
	movq	-16464(%rbp), %rbx              ## 8-byte Reload
LBB0_22:
	movl	-16436(%rbp), %edi              ## 4-byte Reload
	callq	_close
	movq	-16456(%rbp), %rdi
	callq	_unlink
	movq	-16448(%rbp), %rdi
	callq	_unlink
	movq	-16456(%rbp), %rdi
	callq	_free
	movq	-16448(%rbp), %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	movl	%r13d, (%rbx)
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	%r13d, %eax
	addq	$16440, %rsp                    ## imm = 0x4038
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	-16436(%rbp), %edi              ## 4-byte Reload
	callq	_close
	movq	-16448(%rbp), %rdi
	movq	_O_BINARY@GOTPCREL(%rip), %rax
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$420, %edx                      ## imm = 0x1A4
	callq	_r_sandbox_open
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	leaq	-16432(%rbp), %r14
	movl	%eax, -16436(%rbp)              ## 4-byte Spill
	movl	%eax, %edi
	movq	%r14, %rsi
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_read
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$9, %ecx
	callq	_r_mem_mem
	movq	%rax, %r15
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$7, %ecx
	callq	_r_mem_mem
	testq	%r15, %r15
	je	LBB0_16
## %bb.15:
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	subq	%r15, %r13
	shrq	$2, %r13
	addl	$-9, %r13d
	testl	%r13d, %r13d
	movq	-16464(%rbp), %rbx              ## 8-byte Reload
	jle	LBB0_18
## %bb.19:
	leaq	4(%rbx), %rdi
	addq	$36, %r15
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_r_strbuf_setbin
	jmp	LBB0_22
LBB0_13:
	movq	%r12, %rdi
	callq	_free
	movq	-16456(%rbp), %rdi
	callq	_free
	movq	-16448(%rbp), %rdi
	callq	_free
	jmp	LBB0_23
LBB0_16:
	leaq	L_.str.8(%rip), %rdi
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_18:
	xorl	%r13d, %r13d
	jmp	LBB0_22
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"r_as"

L_.str.2:                               ## @.str.2
	.asciz	"ARM_AS"

	.comm	_ARM64_AS,4,2                   ## @ARM64_AS
	.comm	_ARM32_AS,4,2                   ## @ARM32_AS
L_.str.3:                               ## @.str.3
	.asciz	".thumb"

L_.str.4:                               ## @.str.4
	.asciz	"%s\n.ascii \"BEGINMARK\"\n%s\n.ascii \"ENDMARK\"\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s %s -o %s"

	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.6:                               ## @.str.6
	.asciz	"BEGINMARK"

L_.str.7:                               ## @.str.7
	.asciz	"ENDMARK"

L_.str.8:                               ## @.str.8
	.asciz	"Cannot find water marks\n"

L_.str.9:                               ## @.str.9
	.asciz	"Error running: %s %s -o %s"

L_.str.10:                              ## @.str.10
	.asciz	"export PATH=~/NDK/toolchains/arm-linux*/prebuilt/darwin-arm_64/bin\n"

	.no_dead_strip	_assemble
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assemble
_assemble:                              ; @assemble
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	mov	w9, #16432
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #48
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #32
	bl	_r_file_mkstemp
	mov	x22, x0
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.1:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #24
	bl	_r_file_mkstemp
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.2:
	mov	x21, x0
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_r_sys_getenv
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_free
Lloh11:
	adrp	x8, _ARM64_AS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARM64_AS@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh13:
	adrp	x10, _ARM32_AS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ARM32_AS@GOTPAGEOFF]
	cmp	w9, #64
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	bl	_strdup
	mov	x20, x0
LBB0_5:
	ldr	w8, [x24]
Lloh15:
	adrp	x9, l_.str@PAGE
Lloh16:
	add	x9, x9, l_.str@PAGEOFF
Lloh17:
	adrp	x10, l_.str.3@PAGE
Lloh18:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, #16
	csel	x1, x10, x9, eq
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x2, x23
	bl	_r_str_newf
	cbz	x0, LBB0_7
; %bb.6:
	mov	x23, x0
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_write
	mov	x0, x22
	bl	_close
	mov	x0, x23
	bl	_free
LBB0_7:
	ldp	x3, x2, [sp, #24]
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	bl	_r_sys_cmdf
	cbz	w0, LBB0_16
; %bb.8:
	ldp	x9, x8, [sp, #24]
	stp	x8, x9, [sp, #8]
	str	x20, [sp]
Lloh23:
	adrp	x0, l_.str.9@PAGE
Lloh24:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_eprintf
Lloh25:
	adrp	x0, l_.str.10@PAGE
Lloh26:
	add	x0, x0, l_.str.10@PAGEOFF
LBB0_9:
	bl	_eprintf
LBB0_10:
	mov	w22, #0
LBB0_11:
	mov	x0, x21
	bl	_close
	ldr	x0, [sp, #32]
	bl	_unlink
	ldr	x0, [sp, #24]
	bl	_unlink
	ldr	x0, [sp, #32]
	bl	_free
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x20
	bl	_free
	str	w22, [x19]
	b	LBB0_14
LBB0_12:
	ldr	x0, [sp, #32]
LBB0_13:
	bl	_free
	mov	w22, #-1
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.15:
	mov	x0, x22
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #48
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x21
	bl	_close
Lloh30:
	adrp	x8, _O_BINARY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _O_BINARY@GOTPAGEOFF]
	ldr	x0, [sp, #24]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh34:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #420
	bl	_r_sandbox_open
	tbnz	w0, #31, LBB0_21
; %bb.17:
	mov	x21, x0
	add	x1, sp, #40
	mov	w2, #16384
	bl	_read
	mov	x22, x0
Lloh36:
	adrp	x2, l_.str.6@PAGE
Lloh37:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x0, sp, #40
	mov	x1, x22
	mov	w3, #9
	bl	_r_mem_mem
	mov	x23, x0
Lloh38:
	adrp	x2, l_.str.7@PAGE
Lloh39:
	add	x2, x2, l_.str.7@PAGEOFF
	add	x0, sp, #40
	mov	x1, x22
	mov	w3, #7
	bl	_r_mem_mem
	cbz	x23, LBB0_22
; %bb.18:
	cbz	x0, LBB0_22
; %bb.19:
	sub	x8, x0, x23
	lsr	x8, x8, #2
	sub	w22, w8, #9
	cmp	w22, #1
	b.lt	LBB0_10
; %bb.20:
	add	x0, x19, #4
	add	x1, x23, #36
	mov	x2, x22
	bl	_r_strbuf_setbin
	b	LBB0_11
LBB0_21:
	mov	x0, x20
	bl	_free
	ldr	x0, [sp, #32]
	bl	_free
	ldr	x0, [sp, #24]
	b	LBB0_13
LBB0_22:
Lloh40:
	adrp	x0, l_.str.8@PAGE
Lloh41:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_9
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"r_as"

l_.str.2:                               ; @.str.2
	.asciz	"ARM_AS"

	.comm	_ARM64_AS,4,2                   ; @ARM64_AS
	.comm	_ARM32_AS,4,2                   ; @ARM32_AS
l_.str.3:                               ; @.str.3
	.asciz	".thumb"

l_.str.4:                               ; @.str.4
	.asciz	"%s\n.ascii \"BEGINMARK\"\n%s\n.ascii \"ENDMARK\"\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s %s -o %s"

	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.6:                               ; @.str.6
	.asciz	"BEGINMARK"

l_.str.7:                               ; @.str.7
	.asciz	"ENDMARK"

l_.str.8:                               ; @.str.8
	.asciz	"Cannot find water marks\n"

l_.str.9:                               ; @.str.9
	.asciz	"Error running: %s %s -o %s"

l_.str.10:                              ; @.str.10
	.asciz	"export PATH=~/NDK/toolchains/arm-linux*/prebuilt/darwin-arm_64/bin\n"

	.no_dead_strip	_assemble
.subsections_via_symbols
