	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_ipsocket_pton
_mrb_ipsocket_pton:                     ## @mrb_ipsocket_pton
	.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	-112(%rbp), %rdx
	leaq	-104(%rbp), %rcx
	leaq	-96(%rbp), %r8
	callq	_mrb_get_args
	movq	-96(%rbp), %rdx
	cmpq	$50, %rdx
	jb	LBB0_2
## %bb.1:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
	movq	-96(%rbp), %rdx
LBB0_2:
	movq	-104(%rbp), %rsi
	leaq	-80(%rbp), %rdi
	callq	_memcpy
	movq	-96(%rbp), %rax
	movb	$0, -80(%rbp,%rax)
	movq	-112(%rbp), %rdi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_5
## %bb.3:
	leaq	-80(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	callq	_inet_pton
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.4:
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_mrb_str_new
	jmp	LBB0_10
LBB0_5:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_8
## %bb.6:
	leaq	-80(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	callq	_inet_pton
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.7:
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_mrb_str_new
	jmp	LBB0_10
LBB0_8:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
LBB0_9:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_mrb_raise
	xorl	%eax, %eax
	callq	_mrb_nil_value
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$104, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"is"

	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"invalid address"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
L_.str.2:                               ## @.str.2
	.asciz	"unsupported address family"

	.no_dead_strip	_mrb_ipsocket_pton
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_ipsocket_pton
_mrb_ipsocket_pton:                     ; @mrb_ipsocket_pton
	.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
	ldr	x2, [sp, #16]
	cmp	x2, #50
	b.lo	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
	ldr	x2, [sp, #16]
LBB0_2:
	ldr	x1, [sp, #8]
	add	x20, sp, #38
	add	x0, sp, #38
	bl	_memcpy
	ldp	x8, x0, [sp, #16]
	strb	wzr, [x20, x8]
Lloh10:
	adrp	x8, _AF_INET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	add	x1, sp, #38
	mov	x2, sp
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.4:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #4
	bl	_mrb_str_new
	b	LBB0_10
LBB0_5:
Lloh13:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:
	add	x1, sp, #38
	mov	x2, sp
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.7:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	_mrb_str_new
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
LBB0_9:
Lloh21:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_raise
	bl	_mrb_nil_value
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"is"

	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"invalid address"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
l_.str.2:                               ; @.str.2
	.asciz	"unsupported address family"

	.no_dead_strip	_mrb_ipsocket_pton
.subsections_via_symbols
