	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function otrx_check
_otrx_check:                            ## @otrx_check
	.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
	movl	$16408, %eax                    ## imm = 0x4018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_2:
	movq	16(%rsi), %rax
	movq	_trx_path@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	_optind@GOTPCREL(%rip), %rax
	movl	$3, (%rax)
	callq	_otrx_check_parse_options
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movq	_trx_offset@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rax, %rdi
	callq	_fseek
	leaq	-16448(%rbp), %rdi
	movl	$1, %esi
	movl	$16, %edx
	movq	%r14, %rcx
	callq	_fread
	cmpq	$16, %rax
	jne	LBB0_8
## %bb.4:
	movl	-16436(%rbp), %ebx
	movl	%ebx, %edi
	callq	_le32_to_cpu
	movq	_TRX_MAGIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.5:
	movl	-16440(%rbp), %edi
	callq	_le32_to_cpu
	movslq	%eax, %r13
	cmpl	$15, %r13d
	ja	LBB0_16
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_11
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EACCES@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_le32_to_cpu
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r12d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %r15d
LBB0_13:
	movq	%r14, %rdi
	callq	_fclose
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.15:
	movl	%r15d, %eax
	addq	$16408, %rsp                    ## imm = 0x4018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_TRX_FLAGS_OFFSET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r15), %rsi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_fseek
	subq	(%rbx), %r13
	movl	$16384, %edi                    ## imm = 0x4000
	movq	%r13, %rsi
	callq	_otrx_min
	leaq	-16432(%rbp), %rdi
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	movq	%rax, %rbx
	movl	$-1, %r12d
	leaq	-16432(%rbp), %r15
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_otrx_crc32
	movl	%eax, %r12d
	subq	%rbx, %r13
	movl	$16384, %edi                    ## imm = 0x4000
	movq	%r13, %rsi
	callq	_otrx_min
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_fread
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_18
## %bb.19:
	testq	%r13, %r13
	je	LBB0_22
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_trx_path@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_9
LBB0_21:
	movl	$-1, %r12d
	testq	%r13, %r13
	jne	LBB0_20
LBB0_22:
	movl	-16444(%rbp), %ebx
	movl	%ebx, %edi
	callq	_le32_to_cpu
	cmpl	%eax, %r12d
	jne	LBB0_24
## %bb.23:
	movl	-16448(%rbp), %edi
	callq	_le32_to_cpu
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	callq	_printf
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_24:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%ebx, %edi
	callq	_le32_to_cpu
	leaq	L_.str.7(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r13d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_11
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No TRX file passed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_trx_path,8,3                   ## @trx_path
	.comm	_optind,4,2                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't open %s\n"

	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_trx_offset,8,3                 ## @trx_offset
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't read %s header\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_TRX_MAGIC,4,2                  ## @TRX_MAGIC
L_.str.4:                               ## @.str.4
	.asciz	"Invalid TRX magic: 0x%08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"Length read from TRX too low (%zu B)\n"

	.comm	_TRX_FLAGS_OFFSET,8,3           ## @TRX_FLAGS_OFFSET
L_.str.6:                               ## @.str.6
	.asciz	"Couldn't read last %zd B of data from %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid data crc32: 0x%08x instead of 0x%08x\n"

L_.str.8:                               ## @.str.8
	.asciz	"Found a valid TRX version %d\n"

	.no_dead_strip	_otrx_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function otrx_check
_otrx_check:                            ; @otrx_check
	.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	w9, #16432
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #4, lsl #12             ; =16384
	sub	sp, sp, #48
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
Lloh12:
	adrp	x23, _trx_path@GOTPAGE
Lloh13:
	ldr	x23, [x23, _trx_path@GOTPAGEOFF]
	ldr	x8, [x1, #16]
	str	x8, [x23]
Lloh14:
	adrp	x8, _optind@GOTPAGE
Lloh15:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
	mov	w9, #3
Lloh16:
	str	w9, [x8]
	bl	_otrx_check_parse_options
	ldr	x0, [x23]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.3:
	mov	x19, x0
Lloh19:
	adrp	x22, _trx_offset@GOTPAGE
Lloh20:
	ldr	x22, [x22, _trx_offset@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh21:
	adrp	x21, _SEEK_SET@GOTPAGE
Lloh22:
	ldr	x21, [x21, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_fseek
	add	x0, sp, #24
	mov	w1, #1
	mov	w2, #16
	mov	x3, x19
	bl	_fread
	cmp	x0, #16
	b.ne	LBB0_9
; %bb.4:
	ldr	w20, [sp, #36]
	mov	x0, x20
	bl	_le32_to_cpu
Lloh23:
	adrp	x8, _TRX_MAGIC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TRX_MAGIC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.5:
	ldr	w0, [sp, #32]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	cmp	w0, #15
	b.hi	LBB0_17
; %bb.6:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_7:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
Lloh36:
	adrp	x8, _EACCES@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_9:
Lloh38:
	adrp	x8, _stderr@GOTPAGE
Lloh39:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	bl	_fprintf
Lloh43:
	adrp	x8, _EIO@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh45:
	adrp	x8, _stderr@GOTPAGE
Lloh46:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh47:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
LBB0_12:
	bl	_fprintf
Lloh50:
	adrp	x8, _EINVAL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_14:
	mov	x0, x19
	bl	_fclose
LBB0_15:
	ldur	x8, [x29, #-56]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.16:
	mov	x0, x20
	add	sp, sp, #4, lsl #12             ; =16384
	add	sp, sp, #48
	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
LBB0_17:
	ldr	x8, [x22]
Lloh55:
	adrp	x22, _TRX_FLAGS_OFFSET@GOTPAGE
Lloh56:
	ldr	x22, [x22, _TRX_FLAGS_OFFSET@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	ldr	w2, [x21]
	mov	x0, x19
	bl	_fseek
	ldr	x8, [x22]
	sub	x20, x20, x8
	mov	w0, #16384
	mov	x1, x20
	bl	_otrx_min
	mov	x2, x0
	add	x0, sp, #40
	mov	w1, #1
	mov	x3, x19
	bl	_fread
	cbz	x0, LBB0_22
; %bb.18:
	mov	x22, x0
	mov	w21, #-1
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #40
	mov	x0, x21
	mov	x2, x22
	bl	_otrx_crc32
	mov	x21, x0
	sub	x20, x20, x22
	mov	w0, #16384
	mov	x1, x20
	bl	_otrx_min
	mov	x2, x0
	add	x0, sp, #40
	mov	w1, #1
	mov	x3, x19
	bl	_fread
	mov	x22, x0
	cbnz	x0, LBB0_19
; %bb.20:
	cbz	x20, LBB0_23
LBB0_21:
Lloh57:
	adrp	x8, _stderr@GOTPAGE
Lloh58:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	ldr	x8, [x23]
	stp	x20, x8, [sp]
Lloh60:
	adrp	x1, l_.str.6@PAGE
Lloh61:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_22:
	mov	w21, #-1
	cbnz	x20, LBB0_21
LBB0_23:
	ldr	w20, [sp, #28]
	mov	x0, x20
	bl	_le32_to_cpu
	cmp	w21, w0
	b.ne	LBB0_25
; %bb.24:
	ldr	w0, [sp, #24]
	bl	_le32_to_cpu
	mov	x1, x0
Lloh62:
	adrp	x0, l_.str.8@PAGE
Lloh63:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	mov	w20, #0
	b	LBB0_14
LBB0_25:
Lloh64:
	adrp	x8, _stderr@GOTPAGE
Lloh65:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh66:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh67:
	adrp	x1, l_.str.7@PAGE
Lloh68:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	b	LBB0_12
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No TRX file passed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_trx_path,8,3                   ; @trx_path
	.comm	_optind,4,2                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't open %s\n"

	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_trx_offset,8,3                 ; @trx_offset
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't read %s header\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_TRX_MAGIC,4,2                  ; @TRX_MAGIC
l_.str.4:                               ; @.str.4
	.asciz	"Invalid TRX magic: 0x%08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"Length read from TRX too low (%zu B)\n"

	.comm	_TRX_FLAGS_OFFSET,8,3           ; @TRX_FLAGS_OFFSET
l_.str.6:                               ; @.str.6
	.asciz	"Couldn't read last %zd B of data from %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid data crc32: 0x%08x instead of 0x%08x\n"

l_.str.8:                               ; @.str.8
	.asciz	"Found a valid TRX version %d\n"

	.no_dead_strip	_otrx_check
.subsections_via_symbols
