	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$1208, %rsp                     ## imm = 0x4B8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_stdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -1208(%rbp)               ## 8-byte Spill
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -1224(%rbp)               ## 8-byte Spill
	movq	_default_pattern@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -1232(%rbp)               ## 8-byte Spill
	leaq	L_.str(%rip), %r14
	leaq	LJTI0_0(%rip), %r15
	movq	_is_hex_pattern@GOTPCREL(%rip), %r13
	xorl	%eax, %eax
	movq	%rax, -1216(%rbp)               ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%rax, -1248(%rbp)               ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=2
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	xorl	%eax, %eax
	callq	_usage
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-105(%rax), %ecx
	cmpl	$15, %ecx
	ja	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movslq	(%r15,%rcx,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=2
	movl	$1, (%r13)
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -1216(%rbp)               ## 8-byte Spill
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -1232(%rbp)               ## 8-byte Spill
	jmp	LBB0_2
LBB0_10:
	movq	_optind@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	jne	LBB0_12
## %bb.11:
	cmpl	$1, %eax
	jne	LBB0_13
LBB0_12:
	cltq
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%r12,%rax,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
LBB0_13:
	movq	-1248(%rbp), %r14               ## 8-byte Reload
	testq	%r14, %r14
	movq	-1216(%rbp), %rbx               ## 8-byte Reload
	je	LBB0_16
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, %rcx
	movq	%rax, -1208(%rbp)               ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -1208(%rbp)               ## 8-byte Spill
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
LBB0_16:
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	%rax, %rcx
	movq	%rax, -1224(%rbp)               ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	movq	%rax, -1224(%rbp)               ## 8-byte Spill
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
LBB0_19:
	movq	-1232(%rbp), %rdi               ## 8-byte Reload
	callq	_strlen
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
LBB0_21:
	movl	%ebx, %eax
	shrl	$31, %eax
	movl	%ebx, -1216(%rbp)               ## 4-byte Spill
	addl	%ebx, %eax
	movl	%eax, %ebx
	sarl	%ebx
	cmpl	$0, (%r13)
	je	LBB0_31
## %bb.22:
	movl	%ebx, %r14d
	cmpl	$129, %ebx
	jb	LBB0_24
## %bb.23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
LBB0_24:
	movl	-1216(%rbp), %ebx               ## 4-byte Reload
	testb	$1, %bl
	je	LBB0_26
## %bb.25:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
LBB0_26:
	cmpl	$2, %ebx
	movl	%r14d, %ebx
	jl	LBB0_31
## %bb.27:
	movl	%ebx, %r14d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	movzbl	-1236(%rbp), %eax
	movb	%al, -1200(%rbp,%r15)
	incq	%r15
	addq	$2, %r12
	cmpq	%r15, %r14
	je	LBB0_31
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	-1232(%rbp), %rax               ## 8-byte Reload
	leaq	(%rax,%r12), %rdi
	leaq	L_.str.9(%rip), %rsi
	leaq	-1236(%rbp), %rdx
	callq	_sscanf
	testq	%rax, %rax
	jns	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_30
LBB0_31:
	xorl	%r12d, %r12d
	leaq	-1072(%rbp), %r14
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-1232(%rbp), %rdx               ## 8-byte Reload
	movl	-1216(%rbp), %ecx               ## 4-byte Reload
LBB0_40:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	%r12d, %r8d
	callq	_xor_data
	movl	%eax, %r12d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	movq	-1224(%rbp), %rcx               ## 8-byte Reload
	callq	_fwrite
	testl	%eax, %eax
	je	LBB0_41
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1024, %edx                     ## imm = 0x400
	movq	-1208(%rbp), %rcx               ## 8-byte Reload
	callq	_fread
	testq	%rax, %rax
	je	LBB0_42
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%rax, %r15
	cmpq	$1023, %rax                     ## imm = 0x3FF
	ja	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	-1208(%rbp), %rdi               ## 8-byte Reload
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_35
LBB0_37:                                ##   in Loop: Header=BB0_32 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	-1200(%rbp), %rdx
	movl	%ebx, %ecx
	jmp	LBB0_40
LBB0_42:
	movq	-1208(%rbp), %rdi               ## 8-byte Reload
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_43
LBB0_35:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_36
LBB0_43:
	movq	-1224(%rbp), %rdi               ## 8-byte Reload
	callq	_fflush
	testq	%rax, %rax
	je	LBB0_44
LBB0_41:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
LBB0_36:
	xorl	%eax, %eax
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
LBB0_45:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_47
## %bb.46:
	addq	$1208, %rsp                     ## imm = 0x4B8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	movq	-1208(%rbp), %rdi               ## 8-byte Reload
	callq	_fclose
	movq	-1224(%rbp), %rdi               ## 8-byte Reload
	callq	_fclose
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_45
LBB0_47:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_stdin,8,3                      ## @stdin
	.comm	_stdout,8,3                     ## @stdout
	.comm	_default_pattern,8,3            ## @default_pattern
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i:o:p:xh"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_is_hex_pattern,4,2             ## @is_hex_pattern
	.comm	_optind,4,2                     ## @optind
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"illegal arg \"%s\"\n"

L_.str.2:                               ## @.str.2
	.asciz	"r"

L_.str.3:                               ## @.str.3
	.asciz	"can not open \"%s\" for reading\n"

L_.str.4:                               ## @.str.4
	.asciz	"w"

L_.str.5:                               ## @.str.5
	.asciz	"can not open \"%s\" for writing\n"

L_.str.6:                               ## @.str.6
	.asciz	"pattern cannot be empty\n"

L_.str.7:                               ## @.str.7
	.asciz	"provided hex pattern is too long\n"

L_.str.8:                               ## @.str.8
	.asciz	"the number of characters (hex) is incorrect\n"

L_.str.9:                               ## @.str.9
	.asciz	"%2x"

L_.str.10:                              ## @.str.10
	.asciz	"invalid hex digit around %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"fread error\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.12:                              ## @.str.12
	.asciz	"fwrite error\n"

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1200
	mov	x24, x1
	mov	x25, x0
	stp	xzr, xzr, [sp, #8]              ; 16-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _stdin@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
Lloh6:
	adrp	x8, _stdout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
Lloh9:
	adrp	x8, _default_pattern@GOTPAGE
Lloh10:
	ldr	x8, [x8, _default_pattern@GOTPAGEOFF]
Lloh11:
	adrp	x26, l_.str@PAGE
Lloh12:
	add	x26, x26, l_.str@PAGEOFF
Lloh13:
	adrp	x28, lJTI0_0@PAGE
Lloh14:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh15:
	ldr	x21, [x8]
Lloh16:
	adrp	x22, _optarg@GOTPAGE
Lloh17:
	ldr	x22, [x22, _optarg@GOTPAGEOFF]
Lloh18:
	adrp	x27, _is_hex_pattern@GOTPAGE
Lloh19:
	ldr	x27, [x27, _is_hex_pattern@GOTPAGEOFF]
	mov	w23, #1
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_9
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_usage
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x24
	mov	x2, x26
	bl	_getopt
	sub	w8, w0, #105
	cmp	w8, #15
	b.hi	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w23, [x27]
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x22]
	b	LBB0_3
LBB0_9:
Lloh20:
	adrp	x8, _optind@GOTPAGE
Lloh21:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w25
	ccmp	w8, #1, #4, eq
	b.ne	LBB0_11
; %bb.10:
	sxtw	x8, w8
Lloh23:
	adrp	x9, _stderr@GOTPAGE
Lloh24:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x9]
	ldr	x8, [x24, x8, lsl #3]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	bl	_usage
LBB0_11:
	ldp	x23, x22, [sp, #8]              ; 16-byte Folded Reload
	cbz	x23, LBB0_14
; %bb.12:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_14
; %bb.13:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	str	x23, [sp]
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	bl	_usage
LBB0_14:
	cbz	x22, LBB0_17
; %bb.15:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_fopen
	mov	x19, x0
	cbnz	x0, LBB0_17
; %bb.16:
Lloh37:
	adrp	x8, _stderr@GOTPAGE
Lloh38:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	bl	_usage
LBB0_17:
	str	x19, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.18:
Lloh42:
	adrp	x8, _stderr@GOTPAGE
Lloh43:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	bl	_usage
LBB0_19:
	ldr	w8, [x27]
	cmp	w22, #0
	cinc	w9, w22, lt
	asr	w19, w9, #1
	cbz	w8, LBB0_29
; %bb.20:
	cmp	w19, #129
	b.hs	LBB0_23
; %bb.21:
	tbnz	w22, #0, LBB0_24
LBB0_22:
	cmp	w22, #2
	b.ge	LBB0_25
	b	LBB0_29
LBB0_23:
Lloh47:
	adrp	x8, _stderr@GOTPAGE
Lloh48:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x1, l_.str.7@PAGE
Lloh51:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	bl	_usage
	tbz	w22, #0, LBB0_22
LBB0_24:
Lloh52:
	adrp	x8, _stderr@GOTPAGE
Lloh53:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x1, l_.str.8@PAGE
Lloh56:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
	bl	_usage
	cmp	w22, #2
	b.lt	LBB0_29
LBB0_25:
	mov	x26, #0
Lloh57:
	adrp	x24, l_.str.9@PAGE
Lloh58:
	add	x24, x24, l_.str.9@PAGEOFF
	add	x28, sp, #32
	mov	x23, x19
Lloh59:
	adrp	x25, l_.str.10@PAGE
Lloh60:
	add	x25, x25, l_.str.10@PAGEOFF
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [sp, #28]
	strb	w8, [x28], #1
	add	x26, x26, #2
	subs	x23, x23, #1
	b.eq	LBB0_29
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x21, x26
	add	x2, sp, #28
	mov	x1, x24
	bl	_sscanf
	tbz	x0, #63, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
Lloh61:
	adrp	x8, _stderr@GOTPAGE
Lloh62:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	str	x26, [sp]
	mov	x1, x25
	bl	_fprintf
	bl	_usage
	b	LBB0_26
LBB0_29:
	mov	w24, #0
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=1
	add	x0, sp, #160
	mov	x1, x25
	mov	x2, x21
	mov	x3, x22
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x4, x24
	bl	_xor_data
	mov	x24, x0
	add	x0, sp, #160
	mov	x1, x25
	mov	w2, #1
	mov	x3, x23
	bl	_fwrite
	cbz	w0, LBB0_40
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #160
	mov	w1, #1
	mov	w2, #1024
	mov	x3, x20
	bl	_fread
	cbz	x0, LBB0_37
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x25, x0
	cmp	x0, #1023
	b.hi	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x0, x20
	bl	_ferror
	cbnz	x0, LBB0_38
LBB0_35:                                ;   in Loop: Header=BB0_32 Depth=1
	ldr	w8, [x27]
	cbz	w8, LBB0_30
; %bb.36:                               ;   in Loop: Header=BB0_32 Depth=1
	add	x0, sp, #160
	add	x2, sp, #32
	mov	x1, x25
	mov	x3, x19
	b	LBB0_31
LBB0_37:
	mov	x0, x20
	bl	_ferror
	cbz	x0, LBB0_39
LBB0_38:
Lloh64:
	adrp	x8, _stderr@GOTPAGE
Lloh65:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh66:
	ldr	w0, [x8]
Lloh67:
	adrp	x1, l_.str.11@PAGE
Lloh68:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_41
LBB0_39:
	mov	x0, x23
	bl	_fflush
	cbz	x0, LBB0_44
LBB0_40:
Lloh69:
	adrp	x8, _stderr@GOTPAGE
Lloh70:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
Lloh72:
	adrp	x1, l_.str.12@PAGE
Lloh73:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_41:
	bl	_fprintf
Lloh74:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh75:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
LBB0_42:
	ldr	w0, [x8]
	ldur	x8, [x29, #-96]
Lloh76:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh77:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.43:
	add	sp, sp, #1200
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_44:
	mov	x0, x20
	bl	_fclose
	mov	x0, x23
	bl	_fclose
Lloh79:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh80:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
	b	LBB0_42
LBB0_45:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh15
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh79, Lloh80
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_stdin,8,3                      ; @stdin
	.comm	_stdout,8,3                     ; @stdout
	.comm	_default_pattern,8,3            ; @default_pattern
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i:o:p:xh"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_is_hex_pattern,4,2             ; @is_hex_pattern
	.comm	_optind,4,2                     ; @optind
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"illegal arg \"%s\"\n"

l_.str.2:                               ; @.str.2
	.asciz	"r"

l_.str.3:                               ; @.str.3
	.asciz	"can not open \"%s\" for reading\n"

l_.str.4:                               ; @.str.4
	.asciz	"w"

l_.str.5:                               ; @.str.5
	.asciz	"can not open \"%s\" for writing\n"

l_.str.6:                               ; @.str.6
	.asciz	"pattern cannot be empty\n"

l_.str.7:                               ; @.str.7
	.asciz	"provided hex pattern is too long\n"

l_.str.8:                               ; @.str.8
	.asciz	"the number of characters (hex) is incorrect\n"

l_.str.9:                               ; @.str.9
	.asciz	"%2x"

l_.str.10:                              ; @.str.10
	.asciz	"invalid hex digit around %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"fread error\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.12:                              ; @.str.12
	.asciz	"fwrite error\n"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
