	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_res_header
_write_res_header:                      ## @write_res_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	%edx, -48(%rbp)
	movq	%rcx, %rdi
	callq	_get_id_size
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_get_id_size
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %eax
	addl	$27, %eax
	andl	$-4, %eax
	movl	%eax, -44(%rbp)
	addl	$3, %ebx
	andl	$-4, %ebx
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_write_res_data_hdr
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_write_res_id
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_write_res_id
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %esi
	andl	$-4, %esi
	movq	%r13, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_write_res_info
	addl	$3, %eax
	andl	$-4, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_res_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_res_header
_write_res_header:                      ; @write_res_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	mov	x23, x0
	str	w2, [sp, #8]
	mov	x0, x3
	bl	_get_id_size
	mov	x24, x0
	mov	x0, x20
	bl	_get_id_size
	add	w8, w24, w0
	add	w8, w8, #27
	and	w8, w8, #0xfffffffc
	str	w8, [sp, #12]
	add	w8, w22, #3
	and	w1, w8, #0xfffffffc
	add	x2, sp, #8
	mov	x0, x23
	bl	_write_res_data_hdr
	mov	x1, x0
	mov	x0, x23
	mov	x2, x21
	bl	_write_res_id
	mov	x1, x0
	mov	x0, x23
	mov	x2, x20
	bl	_write_res_id
	add	w8, w0, #3
	and	w1, w8, #0xfffffffc
	mov	x0, x23
	mov	x2, x19
	bl	_write_res_info
	add	w8, w0, #3
	and	w0, w8, #0xfffffffc
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_res_header
.subsections_via_symbols
