	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_instruction
_fetch_instruction:                     ## @fetch_instruction
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUNDLE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	%r15d, %eax
	andl	$15, %eax
	movq	_SLOT_MULTIPLIER@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	idivl	(%rcx)
	cmpl	$3, %eax
	jl	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_warning
	movq	_BUNDLE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
LBB0_3:
	andl	$-16, %r15d
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_target_read_memory
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_slotN_contents
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$5, %edx
	callq	_extract_bit_field
	movq	_template_encoding_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	cmpl	$2, %ecx
	je	LBB0_7
## %bb.5:
	cmpl	$1, %ebx
	jne	LBB0_8
## %bb.6:
	movq	_L@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
LBB0_7:
	addl	$16, %r15d
	movl	%r15d, %r14d
	jmp	LBB0_9
LBB0_8:
	incl	%ebx
	movq	_SLOT_MULTIPLIER@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	addl	%r15d, %ebx
	movl	%ebx, %r14d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUNDLE_LEN,4,2                 ## @BUNDLE_LEN
	.comm	_SLOT_MULTIPLIER,4,2            ## @SLOT_MULTIPLIER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't fetch instructions for slot numbers greater than 2.\nUsing slot 0 instead"

	.comm	_template_encoding_table,8,3    ## @template_encoding_table
	.comm	_L,4,2                          ## @L
	.no_dead_strip	_fetch_instruction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_instruction
_fetch_instruction:                     ; @fetch_instruction
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _BUNDLE_LEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _BUNDLE_LEN@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	and	w8, w0, #0xf
Lloh7:
	adrp	x24, _SLOT_MULTIPLIER@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SLOT_MULTIPLIER@GOTPAGEOFF]
	ldr	w9, [x24]
	sdiv	w20, w8, w9
	cmp	w20, #3
	b.lt	LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
	mov	w20, #0
	ldr	w2, [x25]
LBB0_2:
	and	w23, w23, #0xfffffff0
	mov	x0, x23
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_target_read_memory
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	mov	x0, x22
	mov	x1, x20
	bl	_slotN_contents
	str	x0, [x21]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #5
	bl	_extract_bit_field
Lloh11:
	adrp	x8, _template_encoding_table@GOTPAGE
Lloh12:
	ldr	x8, [x8, _template_encoding_table@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	sbfiz	x9, x0, #3, #32
	ldr	x8, [x8, x9]
	ldr	w8, [x8, w20, sxtw #2]
	str	w8, [x19]
	cmp	w20, #2
	b.eq	LBB0_7
; %bb.5:
	cmp	w20, #1
	b.ne	LBB0_8
; %bb.6:
Lloh14:
	adrp	x9, _L@GOTPAGE
Lloh15:
	ldr	x9, [x9, _L@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
LBB0_7:
	add	w0, w23, #16
	b	LBB0_9
LBB0_8:
	ldr	w8, [x24]
	madd	w8, w8, w20, w8
	add	w0, w8, w23
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BUNDLE_LEN,4,2                 ; @BUNDLE_LEN
	.comm	_SLOT_MULTIPLIER,4,2            ; @SLOT_MULTIPLIER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't fetch instructions for slot numbers greater than 2.\nUsing slot 0 instead"

	.comm	_template_encoding_table,8,3    ; @template_encoding_table
	.comm	_L,4,2                          ; @L
	.no_dead_strip	_fetch_instruction
.subsections_via_symbols
