	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_bin_te_get_main_paddr        ## -- Begin function r_bin_te_get_main_paddr
	.p2align	4, 0x90
_r_bin_te_get_main_paddr:               ## @r_bin_te_get_main_paddr
	.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	%rbx
	subq	$2056, %rsp                     ## imm = 0x808
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_r_bin_te_get_entrypoint
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %edi
	movl	8(%rax), %esi
	leaq	-2080(%rbp), %rdx
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_r_buf_read_at
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$232, -612(%rbp)
	jne	LBB0_7
## %bb.3:
	movl	-604(%rbp), %eax
	movl	-600(%rbp), %ecx
	shll	$8, %eax
	orl	-608(%rbp), %eax
	shll	$16, %ecx
	movl	-596(%rbp), %edx
	shll	$24, %edx
	orl	%ecx, %edx
	orl	%eax, %edx
	addl	$372, %edx                      ## imm = 0x174
	movq	(%r14), %rbx
	movslq	%edx, %rax
	movq	_UT64_MAX@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	subq	%rbx, %rcx
	cmpq	%rax, %rcx
	jle	LBB0_11
## %bb.4:
	addq	%rax, %rbx
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_free
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	movq	%rbx, %rax
	addq	$2056, %rsp                     ## imm = 0x808
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	callq	_free
	movq	(%r15), %rbx
	jmp	LBB0_9
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: read (entry)\n"

	.comm	_UT64_MAX,8,3                   ## @UT64_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_bin_te_get_main_paddr        ; -- Begin function r_bin_te_get_main_paddr
	.p2align	2
_r_bin_te_get_main_paddr:               ; @r_bin_te_get_main_paddr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #2064
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_r_bin_te_get_entrypoint
	cbz	x20, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
	ldr	w1, [x19, #8]
	add	x2, sp, #8
	mov	w3, #2048
	bl	_r_buf_read_at
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [sp, #1476]
	cmp	w8, #232
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [sp, #1480]
	ldr	w9, [sp, #1484]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [sp, #1488]
	orr	w8, w8, w9, lsl #16
	ldr	w9, [sp, #1492]
	orr	w8, w8, w9, lsl #24
	add	w9, w8, #372
	ldr	x8, [x19]
	sxtw	x9, w9
Lloh3:
	adrp	x20, _UT64_MAX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _UT64_MAX@GOTPAGEOFF]
	ldr	x10, [x20]
	sub	x10, x10, x8
	cmp	x10, x9
	b.le	LBB0_10
; %bb.4:
	add	x20, x8, x9
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
LBB0_6:
	mov	x20, #0
LBB0_7:
	mov	x0, x19
	bl	_free
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x20
	add	sp, sp, #2064
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	bl	_free
	ldr	x20, [x20]
	b	LBB0_8
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: read (entry)\n"

	.comm	_UT64_MAX,8,3                   ; @UT64_MAX
.subsections_via_symbols
