	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mod_define_singleton_method
_mod_define_singleton_method:           ## @mod_define_singleton_method
	.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	%esi, %r14d
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_mrb_nil_value
	movl	%eax, -28(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%r15, %rdi
	callq	_mrb_get_args
	movl	-28(%rbp), %edi
	callq	_mrb_nil_p
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_mrb_raise
LBB0_2:
	movq	_MRB_TT_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r15, %rdi
	callq	_mrb_obj_alloc
	movq	%rax, %rbx
	movl	-28(%rbp), %edi
	callq	_mrb_proc_ptr
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mrb_proc_copy
	movq	_MRB_PROC_STRICT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%rbx, %rsi
	callq	_MRB_METHOD_FROM_PROC
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_mrb_singleton_class
	movl	%eax, %edi
	callq	_mrb_class_ptr
	movl	-32(%rbp), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mrb_define_method_raw
	movl	-32(%rbp), %edi
	callq	_mrb_symbol_value
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"n&"

	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"no block given"

	.comm	_MRB_TT_PROC,4,2                ## @MRB_TT_PROC
	.comm	_MRB_PROC_STRICT,4,2            ## @MRB_PROC_STRICT
	.no_dead_strip	_mod_define_singleton_method
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mod_define_singleton_method
_mod_define_singleton_method:           ; @mod_define_singleton_method
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
	bl	_mrb_nil_value
	str	w0, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	bl	_mrb_get_args
	ldr	w0, [sp, #8]
	bl	_mrb_nil_p
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
LBB0_2:
Lloh7:
	adrp	x8, _MRB_TT_PROC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MRB_TT_PROC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_mrb_obj_alloc
	mov	x21, x0
	ldr	w0, [sp, #8]
	bl	_mrb_proc_ptr
	mov	x1, x0
	mov	x0, x21
	bl	_mrb_proc_copy
Lloh10:
	adrp	x8, _MRB_PROC_STRICT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MRB_PROC_STRICT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x1, x21
	bl	_MRB_METHOD_FROM_PROC
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_singleton_class
	bl	_mrb_class_ptr
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_mrb_define_method_raw
	ldr	w0, [sp, #12]
	bl	_mrb_symbol_value
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"n&"

	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"no block given"

	.comm	_MRB_TT_PROC,4,2                ; @MRB_TT_PROC
	.comm	_MRB_PROC_STRICT,4,2            ; @MRB_PROC_STRICT
	.no_dead_strip	_mod_define_singleton_method
.subsections_via_symbols
