	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_ipsocket_ntop
_mrb_ipsocket_ntop:                     ## @mrb_ipsocket_ntop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rcx
	leaq	-104(%rbp), %r8
	callq	_mrb_get_args
	movq	-88(%rbp), %rdi
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	movq	-104(%rbp), %rax
	cmpq	(%rcx), %rdi
	jne	LBB0_2
## %bb.1:
	cmpq	$4, %rax
	jne	LBB0_4
LBB0_2:
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_5
## %bb.3:
	cmpq	$16, %rax
	je	LBB0_5
LBB0_4:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
	movq	-88(%rbp), %rdi
LBB0_5:
	movq	-96(%rbp), %rsi
	leaq	-80(%rbp), %rdx
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$50, %ecx
	callq	_inet_ntop
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
LBB0_7:
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mrb_str_new_cstr
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$104, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"is"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"invalid address"

	.no_dead_strip	_mrb_ipsocket_ntop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_ipsocket_ntop
_mrb_ipsocket_ntop:                     ; @mrb_ipsocket_ntop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	add	x3, sp, #8
	add	x4, sp, #16
	bl	_mrb_get_args
Lloh5:
	adrp	x8, _AF_INET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x8]
	ldp	x8, x0, [sp, #16]
	cmp	x0, x9
	ccmp	x8, #4, #4, eq
Lloh8:
	adrp	x20, _E_ARGUMENT_ERROR@GOTPAGE
Lloh9:
	ldr	x20, [x20, _E_ARGUMENT_ERROR@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x0, x9
	ccmp	x8, #16, #4, eq
	b.eq	LBB0_3
LBB0_2:
	ldr	w1, [x20]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
	ldr	x0, [sp, #24]
LBB0_3:
	ldr	x1, [sp, #8]
	add	x2, sp, #38
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w3, #50
	bl	_inet_ntop
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x20]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
LBB0_5:
	add	x1, sp, #38
	mov	x0, x19
	bl	_mrb_str_new_cstr
	ldur	x8, [x29, #-24]
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_7
; %bb.6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"is"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"invalid address"

	.no_dead_strip	_mrb_ipsocket_ntop
.subsections_via_symbols
