	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_piece
_set_piece:                             ## @set_piece
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_clear_piece
	cmpl	$6, %r15d
	ja	LBB0_18
## %bb.1:
	movl	%r15d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	testb	$1, %bl
	jne	LBB0_4
## %bb.3:
	movl	$16843009, 22(%r14)             ## imm = 0x1010101
	jmp	LBB0_18
LBB0_5:
	movw	$257, 23(%r14)                  ## imm = 0x101
	movb	$1, 25(%r14)
	movb	$1, 32(%r14)
	testl	%ebx, %ebx
	jle	LBB0_18
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_rotate_piece
	decl	%ebx
	jne	LBB0_6
	jmp	LBB0_18
LBB0_7:
	movw	$257, 23(%r14)                  ## imm = 0x101
	movb	$1, 25(%r14)
	movb	$1, 30(%r14)
	testl	%ebx, %ebx
	jle	LBB0_18
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_rotate_piece
	decl	%ebx
	jne	LBB0_8
	jmp	LBB0_18
LBB0_9:
	movw	$257, 23(%r14)                  ## imm = 0x101
	movw	$257, 30(%r14)                  ## imm = 0x101
	jmp	LBB0_18
LBB0_10:
	testb	$1, %bl
	jne	LBB0_12
## %bb.11:
	movw	$257, 23(%r14)                  ## imm = 0x101
	movw	$257, 31(%r14)                  ## imm = 0x101
	jmp	LBB0_18
LBB0_13:
	movw	$257, 23(%r14)                  ## imm = 0x101
	movb	$1, 25(%r14)
	movb	$1, 31(%r14)
	testl	%ebx, %ebx
	jle	LBB0_18
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_rotate_piece
	decl	%ebx
	jne	LBB0_14
	jmp	LBB0_18
LBB0_15:
	testb	$1, %bl
	jne	LBB0_17
## %bb.16:
	movw	$257, 24(%r14)                  ## imm = 0x101
	movw	$257, 30(%r14)                  ## imm = 0x101
	jmp	LBB0_18
LBB0_4:
	movb	$1, 10(%r14)
	movb	$1, 17(%r14)
	movb	$1, 24(%r14)
	movb	$1, 31(%r14)
	jmp	LBB0_18
LBB0_12:
	movb	$1, 17(%r14)
	movw	$257, 23(%r14)                  ## imm = 0x101
	movb	$1, 30(%r14)
	jmp	LBB0_18
LBB0_17:
	movb	$1, 17(%r14)
	movw	$257, 24(%r14)                  ## imm = 0x101
	movb	$1, 32(%r14)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_set_piece
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_piece
_set_piece:                             ; @set_piece
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_clear_piece
	cmp	w21, #6
	b.hi	LBB0_18
; %bb.1:
	mov	w8, w21
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	tbnz	w20, #0, LBB0_15
; %bb.3:
	mov	w8, #16843009
	stur	w8, [x19, #22]
	b	LBB0_18
LBB0_4:
	mov	w8, #257
	sturh	w8, [x19, #23]
	mov	w8, #1
	strb	w8, [x19, #25]
	strb	w8, [x19, #32]
	cmp	w20, #1
	b.lt	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_rotate_piece
	subs	w20, w20, #1
	b.ne	LBB0_5
	b	LBB0_18
LBB0_6:
	mov	w8, #257
	sturh	w8, [x19, #23]
	mov	w8, #1
	strb	w8, [x19, #25]
	strb	w8, [x19, #30]
	cmp	w20, #1
	b.lt	LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_rotate_piece
	subs	w20, w20, #1
	b.ne	LBB0_7
	b	LBB0_18
LBB0_8:
	mov	w8, #257
	sturh	w8, [x19, #23]
	strh	w8, [x19, #30]
	b	LBB0_18
LBB0_9:
	tbnz	w20, #0, LBB0_16
; %bb.10:
	mov	w8, #257
	sturh	w8, [x19, #23]
	sturh	w8, [x19, #31]
	b	LBB0_18
LBB0_11:
	mov	w8, #257
	sturh	w8, [x19, #23]
	mov	w8, #1
	strb	w8, [x19, #25]
	strb	w8, [x19, #31]
	cmp	w20, #1
	b.lt	LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_rotate_piece
	subs	w20, w20, #1
	b.ne	LBB0_12
	b	LBB0_18
LBB0_13:
	tbnz	w20, #0, LBB0_17
; %bb.14:
	mov	w8, #257
	strh	w8, [x19, #24]
	strh	w8, [x19, #30]
	b	LBB0_18
LBB0_15:
	mov	w8, #1
	strb	w8, [x19, #10]
	strb	w8, [x19, #17]
	strb	w8, [x19, #24]
	strb	w8, [x19, #31]
	b	LBB0_18
LBB0_16:
	mov	w8, #1
	strb	w8, [x19, #17]
	mov	w9, #257
	sturh	w9, [x19, #23]
	strb	w8, [x19, #30]
	b	LBB0_18
LBB0_17:
	mov	w8, #1
	strb	w8, [x19, #17]
	mov	w9, #257
	strh	w9, [x19, #24]
	strb	w8, [x19, #32]
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_set_piece
.subsections_via_symbols
