	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	16(%r14), %r13
	leaq	L_.str(%rip), %rdi
	leaq	-44(%rbp), %rsi
	callq	_scanf
	movq	_EOF@GOTPCREL(%rip), %r15
	movq	%r14, %rbx
	cmpq	(%r15), %rax
	je	LBB0_3
## %bb.1:
	leaq	-44(%rbp), %r12
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %esi
	movw	%si, (%rbx)
	addq	$2, %rbx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_scanf
	cmpq	(%r15), %rax
	jne	LBB0_2
LBB0_3:
	movl	$10, %edi
	callq	_putchar
	movq	_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax), %ecx
	shrl	$8, %ecx
	addl	8(%rax), %ecx
	movzbl	%cl, %esi
	cmpq	%r13, %rbx
	je	LBB0_14
## %bb.4:
	movq	%rbx, %rax
	subq	%r14, %rax
	addq	$-18, %rax
	cmpq	$6, %rax
	jb	LBB0_13
## %bb.5:
	shrq	%rax
	incq	%rax
	movq	%rax, %rcx
	andq	$-4, %rcx
	movd	%esi, %xmm0
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	pmovzxwq	16(%r14,%rsi,2), %xmm2          ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero
	paddq	%xmm0, %xmm2
	pmovzxwq	20(%r14,%rsi,2), %xmm3          ## xmm3 = mem[0],zero,zero,zero,mem[1],zero,zero,zero
	paddq	%xmm1, %xmm3
	pmovzxwq	24(%r14,%rsi,2), %xmm0          ## xmm0 = mem[0],zero,zero,zero,mem[1],zero,zero,zero
	pmovzxwq	28(%r14,%rsi,2), %xmm1          ## xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero
	paddq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %dl
	je	LBB0_11
LBB0_10:
	pmovzxwq	(%r13,%rsi,2), %xmm2            ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero
	paddq	%xmm2, %xmm0
	pmovzxwq	4(%r13,%rsi,2), %xmm2           ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero
	paddq	%xmm2, %xmm1
LBB0_11:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rsi
	cmpq	%rcx, %rax
	je	LBB0_14
## %bb.12:
	leaq	(%r13,%rcx,2), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzwl	(%r13), %eax
	addq	$2, %r13
	addq	%rax, %rsi
	cmpq	%rbx, %r13
	jne	LBB0_13
LBB0_14:
	movl	%esi, %eax
	shrl	$16, %eax
	addl	%esi, %eax
	movzwl	%ax, %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	testb	$1, %dl
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_buf,8,3                        ## @buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x"

	.comm	_EOF,8,3                        ## @EOF
L_.str.1:                               ## @.str.1
	.asciz	"%d "

L_.str.3:                               ## @.str.3
	.asciz	"%x, %x\n"

.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:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x24, _buf@GOTPAGE
Lloh1:
	ldr	x24, [x24, _buf@GOTPAGEOFF]
	ldr	x23, [x24]
	add	x21, x23, #16
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #28
	bl	_scanf
Lloh4:
	adrp	x25, _EOF@GOTPAGE
Lloh5:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
	ldr	x8, [x25]
	mov	x22, x23
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x19, l_.str.1@PAGE
Lloh7:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x22, x23
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #28]
	strh	w8, [x22], #2
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	add	x1, sp, #28
	mov	x0, x20
	bl	_scanf
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #10
	bl	_putchar
	ldr	x8, [x24]
	ldp	w9, w8, [x8, #8]
	add	w8, w9, w8, lsr #8
	and	w10, w8, #0xff
	cmp	x22, x21
	b.eq	LBB0_9
; %bb.4:
	sub	x8, x22, x23
	sub	x8, x8, #18
	cmp	x8, #30
	b.lo	LBB0_8
; %bb.5:
	lsr	x8, x8, #1
	add	x8, x8, #1
	movi.2d	v1, #0000000000000000
	movi.2d	v0, #0000000000000000
	mov.d	v0[0], x10
	and	x9, x8, #0xfffffffffffffff0
	add	x21, x21, x9, lsl #1
	add	x10, x23, #32
	mov	x11, x9
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v7, #0000000000000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q16, q17, [x10, #-16]
	ushll.4s	v18, v16, #0
	ushll2.4s	v16, v16, #0
	ushll.4s	v19, v17, #0
	ushll2.4s	v17, v17, #0
	uaddw2.2d	v3, v3, v16
	uaddw.2d	v2, v2, v16
	uaddw2.2d	v1, v1, v18
	uaddw.2d	v0, v0, v18
	uaddw2.2d	v7, v7, v17
	uaddw.2d	v5, v5, v17
	uaddw2.2d	v6, v6, v19
	uaddw.2d	v4, v4, v19
	add	x10, x10, #32
	subs	x11, x11, #16
	b.ne	LBB0_6
; %bb.7:
	add.2d	v1, v6, v1
	add.2d	v3, v7, v3
	add.2d	v0, v4, v0
	add.2d	v2, v5, v2
	add.2d	v0, v0, v2
	add.2d	v1, v1, v3
	add.2d	v0, v0, v1
	addp.2d	d0, v0
	fmov	x10, d0
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w8, [x21], #2
	add	x10, x10, x8
	cmp	x21, x22
	b.ne	LBB0_8
LBB0_9:
	add	w8, w10, w10, lsr #16
	and	x8, x8, #0xffff
	stp	x10, x8, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_buf,8,3                        ; @buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x"

	.comm	_EOF,8,3                        ; @EOF
l_.str.1:                               ; @.str.1
	.asciz	"%d "

l_.str.3:                               ; @.str.3
	.asciz	"%x, %x\n"

.subsections_via_symbols
