	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_construct_header               ## -- Begin function construct_header
	.p2align	4, 0x90
_construct_header:                      ## @construct_header
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r13d
	movl	$80, %edi
	callq	_malloc
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_reverse_endian16
	movq	%rax, 72(%rbx)
	movq	$0, 64(%rbx)
	movl	%r15d, %edi
	callq	_reverse_endian16
	movq	%rax, 56(%rbx)
	movl	%r12d, %edi
	callq	_reverse_endian16
	movq	%rax, 48(%rbx)
	movl	%r14d, %edi
	movq	16(%rbp), %r14
	callq	_reverse_endian32
	movq	%rax, 40(%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_reverse_endian32
	movq	%rax, 32(%rbx)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_reverse_endian32
	movq	%rax, 24(%rbx)
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%r14, %rdi
	callq	_strlen
	cmpl	$64, %eax
	jl	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$63, %edx
	callq	_strncpy
	movq	(%rbx), %rax
	movl	$0, 252(%rax)
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcpy
LBB0_3:
	movl	24(%rbp), %edi
	callq	_reverse_endian32
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_get_hcs
	movl	%eax, %edi
	callq	_reverse_endian16
	movq	%rax, 8(%rbx)
	movq	%rbx, %rax
	addq	$8, %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	"Creating header for %s...\n"

L_str:                                  ## @str
	.asciz	"[!] Filename too long - stripping it to 63 bytes."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_construct_header               ; -- Begin function construct_header
	.p2align	2
_construct_header:                      ; @construct_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x7
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x27, x0
	mov	w0, #80
	bl	_malloc
	mov	x19, x0
	mov	x0, x27
	bl	_reverse_endian16
	stp	xzr, x0, [x19, #64]
	mov	x0, x25
	bl	_reverse_endian16
	str	x0, [x19, #56]
	mov	x0, x26
	bl	_reverse_endian16
	str	x0, [x19, #48]
	mov	x0, x24
	bl	_reverse_endian32
	str	x0, [x19, #40]
	mov	x0, x23
	bl	_reverse_endian32
	str	x0, [x19, #32]
	mov	x0, x22
	bl	_reverse_endian32
	str	x0, [x19, #24]
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x21
	bl	_strlen
	cmp	w0, #64
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_str@PAGE
Lloh3:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x19
	mov	x1, x21
	mov	w2, #63
	bl	_strncpy
	ldr	x8, [x19]
	str	wzr, [x8, #252]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_strcpy
LBB0_3:
	mov	x0, x20
	bl	_reverse_endian32
	str	x0, [x19, #16]
	mov	x0, x19
	bl	_get_hcs
	bl	_reverse_endian16
	str	x0, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Creating header for %s...\n"

l_str:                                  ; @str
	.asciz	"[!] Filename too long - stripping it to 63 bytes."

.subsections_via_symbols
