	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coff_to_bin
_coff_to_bin:                           ## @coff_to_bin
	.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
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	16(%rsi), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$40, %esi
	callq	_coff_alloc
	movq	%rax, %r12
	movl	12(%r13), %edi
	movl	36(%rax), %esi
	movl	(%r15), %edx
	callq	_windres_put_32
	movl	12(%r13), %edi
	movl	32(%r12), %esi
	movl	4(%r15), %edx
	callq	_windres_put_32
	movl	12(%r13), %edi
	movq	24(%r12), %rsi
	movl	8(%r15), %edx
	callq	_windres_put_16
	movl	12(%r13), %edi
	movq	16(%r12), %rsi
	movl	12(%r15), %edx
	callq	_windres_put_16
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	cmpq	$0, 48(%rax)
	sete	%cl
	setne	%dl
	addl	%edx, %r14d
	addl	%ecx, %ebx
	movq	56(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_4:
	movl	12(%r13), %edi
	movq	8(%r12), %rsi
	movl	%r14d, %edx
	callq	_windres_put_16
	movl	12(%r13), %edi
	movq	(%r12), %rsi
	movl	%ebx, %edx
	callq	_windres_put_16
	addl	%r14d, %ebx
	shll	$3, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_coff_alloc
	movq	16(%r15), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.5:
	movq	%rax, %r14
	leaq	20(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r13), %edx
	addl	(%r13), %edx
	addl	8(%r13), %edx
	callq	_windres_put_32
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_coff_res_to_bin
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$8, %r14
	movq	56(%r12), %r12
	testq	%r12, %r12
	je	LBB0_15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	cmpq	$0, 48(%r12)
	movl	12(%r13), %edi
	movl	4(%r14), %esi
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	20(%r13), %edx
	addl	(%r13), %edx
	orl	$-2147483648, %edx              ## imm = 0x80000000
	callq	_windres_put_32
	movl	32(%r12), %eax
	leal	(%rax,%rax), %esi
	addl	$2, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_coff_alloc
	movq	%rax, %rbx
	movl	12(%r13), %edi
	movl	32(%r12), %edx
	movq	%rax, %rsi
	callq	_windres_put_16
	cmpl	$0, 32(%r12)
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	12(%r13), %edi
	movq	40(%r12), %rax
	movl	(%rax,%r15,4), %edx
	incq	%r15
	movq	%rbx, %rsi
	callq	_windres_put_16
	movslq	32(%r12), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	24(%r12), %edx
	callq	_windres_put_32
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%r12)
	movl	12(%r13), %edi
	movl	(%r14), %esi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r13), %edx
	movl	$-2147483648, %eax              ## imm = 0x80000000
	orl	%eax, %edx
	callq	_windres_put_32
	movq	8(%r12), %rdi
	movq	%r13, %rsi
	callq	_coff_to_bin
	jmp	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_coff_to_bin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coff_to_bin
_coff_to_bin:                           ; @coff_to_bin
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	add	x20, x1, #16
	mov	x0, x20
	mov	w1, #40
	bl	_coff_alloc
	mov	x22, x0
	ldr	w0, [x19, #12]
	ldr	w1, [x22, #36]
	ldr	w2, [x21]
	bl	_windres_put_32
	ldr	w0, [x19, #12]
	ldr	w1, [x22, #32]
	ldr	w2, [x21, #4]
	bl	_windres_put_32
	ldr	w0, [x19, #12]
	ldr	x1, [x22, #24]
	ldr	w2, [x21, #8]
	bl	_windres_put_16
	ldr	w0, [x19, #12]
	ldr	x1, [x22, #16]
	ldr	w2, [x21, #12]
	bl	_windres_put_16
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w24, #0
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x8, #48]
	cmp	x9, #0
	cinc	w23, w23, ne
	cinc	w24, w24, eq
	cbnz	x8, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w23, #0
	mov	w24, #0
LBB0_4:
	ldr	w0, [x19, #12]
	ldr	x1, [x22, #8]
	mov	x2, x23
	bl	_windres_put_16
	ldr	w0, [x19, #12]
	ldr	x1, [x22]
	mov	x2, x24
	bl	_windres_put_16
	add	w8, w24, w23
	lsl	w1, w8, #3
	mov	x0, x20
	bl	_coff_alloc
	ldr	x23, [x21, #16]
	cbz	x23, LBB0_15
; %bb.5:
	mov	x20, x0
	add	x21, x19, #20
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldp	w8, w9, [x19]
	ldr	w10, [x19, #8]
	add	w8, w9, w8
	add	w2, w8, w10
	bl	_windres_put_32
	ldr	w0, [x23]
	mov	x1, x19
	bl	_coff_res_to_bin
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #8
	ldr	x23, [x23, #56]
	cbz	x23, LBB0_15
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x23, #48]
	ldr	w0, [x19, #12]
	ldr	w1, [x20, #4]
	cbz	x8, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x19, #20]
	add	w8, w9, w8
	orr	w2, w8, #0x80000000
	bl	_windres_put_32
	ldr	w8, [x23, #32]
	lsl	w8, w8, #1
	add	w1, w8, #2
	mov	x0, x21
	bl	_coff_alloc
	mov	x22, x0
	ldr	w0, [x19, #12]
	ldr	w2, [x23, #32]
	mov	x1, x22
	bl	_windres_put_16
	ldr	w8, [x23, #32]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, #0
	add	x22, x22, #16
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x19, #12]
	add	x24, x8, #1
	ldr	x9, [x23, #40]
	ldr	w2, [x9, x8, lsl #2]
	mov	x1, x22
	bl	_windres_put_16
	ldrsw	x9, [x23, #32]
	add	x22, x22, #16
	mov	x8, x24
	cmp	x24, x9
	b.lt	LBB0_11
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x23, #24]
	bl	_windres_put_32
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23, #16]
	ldr	w0, [x19, #12]
	ldr	w1, [x20]
	cbz	x8, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #16]
	orr	w2, w8, #0x80000000
	bl	_windres_put_32
	ldr	x0, [x23, #8]
	mov	x1, x19
	bl	_coff_to_bin
	b	LBB0_7
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_coff_to_bin
.subsections_via_symbols
