	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_exc_set                    ## -- Begin function mrb_exc_set
	.p2align	4, 0x90
_mrb_exc_set:                           ## @mrb_exc_set
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_mrb_nil_p
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
	jmp	LBB0_7
LBB0_2:
	movl	%r14d, %edi
	callq	_mrb_obj_ptr
	movq	%rax, (%rbx)
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.3:
	movq	16(%rbx), %rdx
	decl	%ecx
	cmpq	%rax, (%rdx,%rcx,8)
	je	LBB0_4
LBB0_5:
	cmpl	$0, 12(%rbx)
	jne	LBB0_7
LBB0_6:
	movq	%rax, %rdi
	callq	_MRB_FROZEN_P
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_exc_debug_info
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mrb_keep_backtrace             ## TAILCALL
LBB0_4:
	movl	%ecx, 8(%rbx)
	cmpl	$0, 12(%rbx)
	je	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_exc_set                    ; -- Begin function mrb_exc_set
	.p2align	2
_mrb_exc_set:                           ; @mrb_exc_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_mrb_nil_p
	cbz	x0, LBB0_2
; %bb.1:
	str	xzr, [x19]
	b	LBB0_8
LBB0_2:
	mov	x0, x20
	bl	_mrb_obj_ptr
	str	x0, [x19]
	ldr	w8, [x19, #8]
	subs	w8, w8, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	x9, [x19, #16]
	ldr	x9, [x9, w8, uxtw #3]
	cmp	x9, x0
	b.eq	LBB0_7
LBB0_4:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_8
LBB0_5:
	bl	_MRB_FROZEN_P
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x1, [x19]
	mov	x0, x19
	bl	_exc_debug_info
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mrb_keep_backtrace
LBB0_7:
	str	w8, [x19, #8]
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
