	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_rfile
_init_rfile:                            ## @init_rfile
	.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
	movq	%rdi, %rbx
	movq	_r_arg@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	movq	(%rbx), %rax
LBB0_2:
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	movl	$16, %edx
	callq	_read
	cmpl	$16, %eax
	je	LBB0_4
## %bb.3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movl	-20(%rbp), %ebx
	movl	%ebx, %edi
	callq	_le32toh
	movq	_USBCAP_FILEHDR_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_le32toh
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_6:
	movq	-32(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_errx
LBB0_8:
	movl	-24(%rbp), %edx
	movq	_uf_minor@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	movl	%edx, %eax
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_10
## %bb.9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_errx                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_r_arg,4,2                      ## @r_arg
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not open '%s' for read"

L_.str.1:                               ## @.str.1
	.asciz	"Could not read USB capture file header"

	.comm	_USBCAP_FILEHDR_MAGIC,8,3       ## @USBCAP_FILEHDR_MAGIC
	.comm	_EX_SOFTWARE,4,2                ## @EX_SOFTWARE
L_.str.2:                               ## @.str.2
	.asciz	"Invalid magic field(0x%08x) in USB capture file header."

L_.str.3:                               ## @.str.3
	.asciz	"Invalid major version(%d) field in USB capture file header."

	.comm	_uf_minor,4,2                   ## @uf_minor
L_.str.4:                               ## @.str.4
	.asciz	"Invalid minor version(%d) field in USB capture file header."

	.no_dead_strip	_init_rfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_rfile
_init_rfile:                            ; @init_rfile
	.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, x0
Lloh0:
	adrp	x20, _r_arg@GOTPAGE
Lloh1:
	ldr	x20, [x20, _r_arg@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_open
	str	x0, [x19]
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
	ldr	x0, [x19]
LBB0_2:
	add	x1, sp, #16
	mov	w2, #16
	bl	_read
	cmp	w0, #16
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_4:
	ldr	w19, [sp, #28]
	mov	x0, x19
	bl	_le32toh
Lloh15:
	adrp	x8, _USBCAP_FILEHDR_MAGIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _USBCAP_FILEHDR_MAGIC@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x21, _EX_SOFTWARE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _EX_SOFTWARE@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	ldr	w20, [x21]
	mov	x0, x19
	bl	_le32toh
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_errx
LBB0_6:
	ldr	x2, [sp, #16]
	cbz	x2, LBB0_8
; %bb.7:
	ldr	w0, [x21]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_errx
LBB0_8:
	ldr	w2, [sp, #24]
Lloh24:
	adrp	x8, _uf_minor@GOTPAGE
Lloh25:
	ldr	x8, [x8, _uf_minor@GOTPAGEOFF]
Lloh26:
	str	w2, [x8]
	and	w8, w2, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_10
; %bb.9:
	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_10:
	ldr	w0, [x21]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	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
	b	_errx
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_r_arg,4,2                      ; @r_arg
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not open '%s' for read"

l_.str.1:                               ; @.str.1
	.asciz	"Could not read USB capture file header"

	.comm	_USBCAP_FILEHDR_MAGIC,8,3       ; @USBCAP_FILEHDR_MAGIC
	.comm	_EX_SOFTWARE,4,2                ; @EX_SOFTWARE
l_.str.2:                               ; @.str.2
	.asciz	"Invalid magic field(0x%08x) in USB capture file header."

l_.str.3:                               ; @.str.3
	.asciz	"Invalid major version(%d) field in USB capture file header."

	.comm	_uf_minor,4,2                   ; @uf_minor
l_.str.4:                               ; @.str.4
	.asciz	"Invalid minor version(%d) field in USB capture file header."

	.no_dead_strip	_init_rfile
.subsections_via_symbols
