	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skip_null_resource
_skip_null_resource:                    ## @skip_null_resource
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	leaq	-32(%rbp), %rcx
	callq	_read_res_data_hdr
	cmpq	$0, -32(%rbp)
	je	LBB0_1
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_program_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_xexit
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	-24(%rbp), %ecx
	cmpl	$32, %ecx
	sete	%dl
	movq	_target_is_bigendian@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setne	%al
	orb	%al, %dl
	cmpl	$536870912, %ecx                ## imm = 0x20000000
	setne	%cl
	cmpb	$1, %dl
	jne	LBB0_4
## %bb.2:
	andb	%al, %cl
	jne	LBB0_4
## %bb.3:
	movq	_BIN_RES_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	subl	(%rax), %ecx
	addl	$32, %ecx
	movl	%ecx, (%rbx)
	cmpl	%r14d, %ecx
	jge	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_target_is_bigendian,8,3        ## @target_is_bigendian
	.comm	_BIN_RES_HDR_SIZE,4,2           ## @BIN_RES_HDR_SIZE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: Not a valid WIN32 resource file\n"

	.comm	_program_name,8,3               ## @program_name
	.comm	_filename,8,3                   ## @filename
	.no_dead_strip	_skip_null_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skip_null_resource
_skip_null_resource:                    ; @skip_null_resource
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	mov	x3, sp
	bl	_read_res_data_hdr
	ldr	x8, [sp]
	cbz	x8, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _program_name@GOTPAGE
Lloh4:
	ldr	x8, [x8, _program_name@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
Lloh6:
	adrp	x8, _filename@GOTPAGE
Lloh7:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh8:
	ldr	x3, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_xexit
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	ldr	w9, [sp, #8]
	cmp	w9, #32
	cset	w10, eq
Lloh11:
	adrp	x8, _target_is_bigendian@GOTPAGE
Lloh12:
	ldr	x8, [x8, _target_is_bigendian@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	orr	w10, w10, w8
	mov	w11, #536870912
	cmp	w9, w11
	cset	w9, ne
	cmp	w10, #1
	b.ne	LBB0_1
; %bb.4:
	and	w8, w9, w8
	tbnz	w8, #0, LBB0_1
; %bb.5:
Lloh14:
	adrp	x8, _BIN_RES_HDR_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BIN_RES_HDR_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x20]
	sub	w8, w9, w8
	add	w8, w8, #32
	str	w8, [x20]
	cmp	w8, w19
	b.ge	LBB0_1
	b	LBB0_2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_target_is_bigendian,8,3        ; @target_is_bigendian
	.comm	_BIN_RES_HDR_SIZE,4,2           ; @BIN_RES_HDR_SIZE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: Not a valid WIN32 resource file\n"

	.comm	_program_name,8,3               ; @program_name
	.comm	_filename,8,3                   ; @filename
	.no_dead_strip	_skip_null_resource
.subsections_via_symbols
