	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_res_data_hdr
_read_res_data_hdr:                     ## @read_res_data_hdr
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rax
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %rdx
	movq	_BIN_RES_HDR_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	(%rcx,%rdx), %rsi
	cmpq	%rax, %rsi
	jle	LBB0_2
## %bb.1:
	movq	_filename@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rcx
	callq	_fatal
	movq	(%r15), %rdx
	movq	(%r12), %rcx
LBB0_2:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_windres_bfd_content
	movl	-36(%rbp), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 8(%r14)
	movl	-40(%rbp), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, (%r14)
	movq	(%r12), %rax
	addq	%rax, (%r15)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIN_RES_HDR_SIZE,8,3           ## @BIN_RES_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unexpected end of file %ld/%ld"

	.comm	_filename,4,2                   ## @filename
	.no_dead_strip	_read_res_data_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_res_data_hdr
_read_res_data_hdr:                     ; @read_res_data_hdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x8, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x2, [x1]
Lloh0:
	adrp	x22, _BIN_RES_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BIN_RES_HDR_SIZE@GOTPAGEOFF]
	ldr	x3, [x22]
	add	x9, x3, x2
	cmp	x9, x8
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _filename@GOTPAGE
Lloh3:
	ldr	x9, [x9, _filename@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x8
	bl	_fatal
	ldr	x2, [x19]
	ldr	x3, [x22]
LBB0_2:
	add	x1, sp, #8
	mov	x0, x21
	bl	_get_windres_bfd_content
	ldr	w1, [sp, #12]
	mov	x0, x21
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x20, #8]
	ldr	w1, [sp, #8]
	mov	x0, x21
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x20]
	ldr	x8, [x22]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BIN_RES_HDR_SIZE,8,3           ; @BIN_RES_HDR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unexpected end of file %ld/%ld"

	.comm	_filename,4,2                   ; @filename
	.no_dead_strip	_read_res_data_hdr
.subsections_via_symbols
