	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function probe_binary
_probe_binary:                          ## @probe_binary
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	$0, -36(%rbp)
	leaq	-36(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edx
	callq	_read_res_data_hdr
	movl	$1, %eax
	cmpq	$0, -56(%rbp)
	je	LBB0_1
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-48(%rbp), %edx
	cmpl	$32, %edx
	sete	%bl
	movq	_target_is_bigendian@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	setne	%cl
	orb	%cl, %bl
	cmpl	$536870912, %edx                ## imm = 0x20000000
	setne	%dl
	cmpb	$1, %bl
	jne	LBB0_5
## %bb.2:
	andb	%cl, %dl
	jne	LBB0_5
## %bb.3:
	movq	_BIN_RES_HDR_SIZE@GOTPCREL(%rip), %r15
	movl	-36(%rbp), %ecx
	movl	%ecx, %edx
	subl	(%r15), %edx
	addl	$32, %edx
	movl	%edx, -36(%rbp)
	addl	$32, %ecx
	cmpl	%r14d, %ecx
	jge	LBB0_5
## %bb.4:
	leaq	-36(%rbp), %rsi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_read_res_data_hdr
	movslq	-36(%rbp), %rax
	movslq	(%r15), %rcx
	subq	%rcx, %rax
	addq	-56(%rbp), %rax
	movslq	-48(%rbp), %rcx
	addq	%rax, %rcx
	movslq	%r14d, %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	setle	%al
	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
	.no_dead_strip	_probe_binary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function probe_binary
_probe_binary:                          ; @probe_binary
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #28]
	add	x1, sp, #28
	add	x3, sp, #8
	mov	x2, x19
	bl	_read_res_data_hdr
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	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
	add	sp, sp, #80
	ret
LBB0_3:
	ldr	w9, [sp, #16]
	cmp	w9, #32
	cset	w10, eq
Lloh0:
	adrp	x8, _target_is_bigendian@GOTPAGE
Lloh1:
	ldr	x8, [x8, _target_is_bigendian@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	orr	w10, w10, w8
	mov	w11, #536870912
	cmp	w9, w11
	cset	w9, ne
	mov	w0, #1
	cmp	w10, #1
	b.ne	LBB0_2
; %bb.4:
	and	w8, w9, w8
	tbnz	w8, #0, LBB0_2
; %bb.5:
Lloh3:
	adrp	x21, _BIN_RES_HDR_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BIN_RES_HDR_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [sp, #28]
	sub	w8, w9, w8
	add	w8, w8, #32
	str	w8, [sp, #28]
	add	w8, w9, #32
	cmp	w8, w19
	b.ge	LBB0_1
; %bb.6:
	add	x1, sp, #28
	add	x3, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_read_res_data_hdr
	ldrsw	x8, [sp, #28]
	ldrsw	x9, [x21]
	ldr	x10, [sp, #8]
	sub	x8, x8, x9
	add	x8, x10, x8
	ldrsw	x9, [sp, #16]
	add	x8, x8, x9
	cmp	x8, w19, sxtw
	cset	w0, le
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_target_is_bigendian,8,3        ; @target_is_bigendian
	.comm	_BIN_RES_HDR_SIZE,4,2           ; @BIN_RES_HDR_SIZE
	.no_dead_strip	_probe_binary
.subsections_via_symbols
