	.file	"extr_trans.c_hfs_asc2mac.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hfs_asc2mac
	.type	hfs_asc2mac, @function
hfs_asc2mac:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	HFS_SB@PLT
	mov	rdi, rbp
	mov	r12, QWORD PTR 8[rax]
	call	HFS_SB@PLT
	mov	r15, QWORD PTR [rbx]
	mov	r13d, DWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR [r14]
	mov	ebp, DWORD PTR HFS_NAMELEN[rip]
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L2
	test	r13d, r13d
	jle	.L20
	lea	r14, 23[rsp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	edi, BYTE PTR 23[rsp]
	movsx	rdx, eax
	sub	r13d, eax
	add	r15, rdx
	cmp	dil, 58
	jne	.L5
	mov	BYTE PTR 23[rsp], 47
	mov	edi, 47
.L5:
	test	r12, r12
	je	.L6
.L29:
	mov	edx, ebp
	mov	rsi, rbx
	call	[QWORD PTR 8[r12]]
	movsx	rdx, eax
	test	eax, eax
	js	.L28
.L8:
	add	rbx, rdx
	sub	ebp, eax
	test	r13d, r13d
	jle	.L26
.L12:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, r14
	mov	esi, r13d
	mov	rdi, r15
	call	[QWORD PTR [rax]]
	test	eax, eax
	jns	.L4
	mov	BYTE PTR 23[rsp], 63
	add	r15, 1
	sub	r13d, 1
	mov	edi, 63
	test	r12, r12
	jne	.L29
.L6:
	mov	BYTE PTR [rbx], dil
	sub	ebp, 1
	add	rbx, 1
	test	r13d, r13d
	jg	.L12
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rax, QWORD PTR 8[rsp]
	mov	ebp, DWORD PTR HFS_NAMELEN[rip]
	mov	rdx, rbx
	sub	rdx, QWORD PTR [rax]
	mov	eax, edx
	sub	ebp, edx
.L10:
	mov	rcx, QWORD PTR 8[rsp]
	mov	DWORD PTR 8[rcx], eax
	lea	eax, -1[rbp]
	lea	rax, 1[rbx+rax]
	test	ebp, ebp
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	add	rbx, 1
	mov	BYTE PTR -1[rbx], 0
	cmp	rbx, rax
	jne	.L16
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L30
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	add	eax, DWORD PTR ENAMETOOLONG[rip]
	je	.L26
	mov	BYTE PTR [rbx], 63
	mov	edx, 1
	mov	eax, 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	r13d, ebp
	mov	ecx, r13d
	cmovg	ecx, ebp
	test	ecx, ecx
	jle	.L20
	sub	ecx, 1
	xor	edx, edx
	mov	esi, 47
	lea	rdi, 1[rcx]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdx, rax
.L14:
	movzx	eax, BYTE PTR [r15+rdx]
	cmp	al, 58
	cmove	eax, esi
	mov	BYTE PTR [rbx+rdx], al
	lea	rax, 1[rdx]
	cmp	rcx, rdx
	jne	.L21
	add	rbx, rdi
	jmp	.L26
.L20:
	xor	eax, eax
	jmp	.L10
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hfs_asc2mac, .-hfs_asc2mac
	.comm	HFS_NAMELEN,4,4
	.comm	ENAMETOOLONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_trans.c_hfs_asc2mac.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hfs_asc2mac
	.syntax unified
	.arm
	.fpu softvfp
	.type	hfs_asc2mac, %function
hfs_asc2mac:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L30
	sub	sp, sp, #12
	mov	r4, r2
	mov	r5, r0
	mov	r10, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	HFS_SB
	mov	r3, r0
	mov	r0, r5
	ldr	r8, [r3, #4]
	bl	HFS_SB
	ldr	r9, [r0]
	ldr	r3, .L30+4
	cmp	r9, #0
	ldr	r7, [r4]
	ldr	r5, [r4, #4]
	ldr	r6, [r3]
	ldr	r4, [r10]
	beq	.L2
	cmp	r5, #0
	ble	.L19
	ldr	fp, .L30+8
	b	.L12
.L4:
	ldrb	r0, [sp, #3]	@ zero_extendqisi2
	add	r7, r7, r3
	cmp	r0, #58
	sub	r5, r5, r3
	moveq	r3, #47
	moveq	r0, #47
	strbeq	r3, [sp, #3]
	cmp	r8, #0
	beq	.L6
.L28:
	ldr	r3, [r8, #4]
	mov	r2, r6
	mov	r1, r4
	blx	r3
	cmp	r0, #0
	movge	r3, r0
	blt	.L27
.L8:
	cmp	r5, #0
	add	r4, r4, r3
	sub	r6, r6, r0
	ble	.L25
.L12:
	ldr	r3, [r9]
	mov	r1, r5
	mov	r0, r7
	add	r2, sp, #3
	blx	r3
	subs	r3, r0, #0
	bge	.L4
	mov	r0, #63
	cmp	r8, #0
	add	r7, r7, #1
	sub	r5, r5, #1
	strb	r0, [sp, #3]
	bne	.L28
.L6:
	cmp	r5, #0
	strb	r0, [r4], #1
	sub	r6, r6, #1
	bgt	.L12
.L25:
	ldr	r3, .L30+4
	ldr	r9, [r10]
	ldr	r6, [r3]
	sub	r9, r4, r9
	sub	r6, r6, r9
.L10:
	cmp	r6, #0
	str	r9, [r10, #4]
	ble	.L1
	mov	r3, #0
	add	r6, r4, r6
.L16:
	strb	r3, [r4], #1
	cmp	r4, r6
	bne	.L16
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	ldr	r3, [fp]
	cmn	r0, r3
	beq	.L25
	mov	r3, #1
	mov	r2, #63
	mov	r0, r3
	strb	r2, [r4]
	b	.L8
.L2:
	cmp	r5, r6
	movge	r5, r6
	cmp	r5, #0
	ble	.L10
	mov	r2, r4
	add	r1, r7, r5
.L14:
	ldrb	r3, [r7], #1	@ zero_extendqisi2
	cmp	r3, #58
	moveq	r3, #47
	cmp	r7, r1
	strb	r3, [r2], #1
	bne	.L14
	ldr	r3, .L30+4
	ldr	r9, [r10]
	ldr	r6, [r3]
	add	r4, r4, r5
	sub	r9, r4, r9
	sub	r6, r6, r9
	b	.L10
.L19:
	mov	r9, #0
	b	.L10
.L29:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC0
	.word	HFS_NAMELEN
	.word	ENAMETOOLONG
	.size	hfs_asc2mac, .-hfs_asc2mac
	.comm	HFS_NAMELEN,4,4
	.comm	ENAMETOOLONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
