	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proxy_address_get
_proxy_address_get:                     ## @proxy_address_get
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_luaL_checkself
	movq	(%rax), %r12
	movl	$0, -36(%rbp)
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_luaL_checklstring
	movq	%rax, %r15
	movl	-36(%rbp), %ebx
	leaq	L_.str(%rip), %rdi
	callq	_C
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	16(%r12), %esi
	movq	%r14, %rdi
LBB0_17:
	callq	_lua_pushinteger
	jmp	LBB0_18
LBB0_2:
	movl	-36(%rbp), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_C
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	32(%r12), %edi
	callq	_S
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_lua_pushlstring
	jmp	LBB0_18
LBB0_4:
	movl	-36(%rbp), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_C
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	16(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.6:
	cmpl	$130, %eax
	jne	LBB0_14
## %bb.7:
	movl	12(%r12), %edi
	callq	_inet_ntoa
	movq	%rax, %rsi
	testq	%rsi, %rsi
	jne	LBB0_13
	jmp	LBB0_14
LBB0_8:
	movl	-36(%rbp), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_C
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strleq
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movl	16(%r12), %eax
	cmpl	$129, %eax
	je	LBB0_15
## %bb.10:
	cmpl	$130, %eax
	jne	LBB0_14
## %bb.11:
	movl	8(%r12), %edi
	jmp	LBB0_16
LBB0_12:
	movq	24(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
LBB0_13:
	movq	%r14, %rdi
	callq	_lua_pushstring
	jmp	LBB0_18
LBB0_14:
	movq	%r14, %rdi
	callq	_lua_pushnil
LBB0_18:
	movl	$1, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%r12), %edi
LBB0_16:
	callq	_ntohs
	movq	%r14, %rdi
	movl	%eax, %esi
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"type"

L_.str.1:                               ## @.str.1
	.asciz	"name"

L_.str.2:                               ## @.str.2
	.asciz	"address"

L_.str.3:                               ## @.str.3
	.asciz	"port"

	.comm	_INET6_ADDRSTRLEN,4,2           ## @INET6_ADDRSTRLEN
	.no_dead_strip	_proxy_address_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proxy_address_get
_proxy_address_get:                     ; @proxy_address_get
	.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	x19, x0
	bl	_luaL_checkself
	ldr	x22, [x0]
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #2
	bl	_luaL_checklstring
	mov	x20, x0
	ldr	w21, [sp, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strleq
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x22, #16]
LBB0_2:
	mov	x0, x19
	bl	_lua_pushinteger
	b	LBB0_16
LBB0_3:
	ldr	w21, [sp, #12]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strleq
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x22, #32]
	bl	_S
	mov	x1, x0
	mov	x0, x19
	bl	_lua_pushlstring
	b	LBB0_16
LBB0_5:
	ldr	w21, [sp, #12]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strleq
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w8, [x22, #16]
	cmp	w8, #128
	b.eq	LBB0_13
; %bb.7:
	cmp	w8, #130
	b.ne	LBB0_15
; %bb.8:
	ldr	w0, [x22, #12]
	bl	_inet_ntoa
	mov	x1, x0
	cbnz	x1, LBB0_14
	b	LBB0_15
LBB0_9:
	ldr	w21, [sp, #12]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_C
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_strleq
	cbz	x0, LBB0_15
; %bb.10:
	ldr	w8, [x22, #16]
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.11:
	cmp	w8, #130
	b.ne	LBB0_15
; %bb.12:
	ldr	w0, [x22, #8]
	b	LBB0_18
LBB0_13:
	ldr	x1, [x22, #24]
	cbz	x1, LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_lua_pushstring
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_lua_pushnil
LBB0_16:
	mov	w0, #1
	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
LBB0_17:
	ldr	w0, [x22]
LBB0_18:
	bl	_ntohs
	mov	x1, x0
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"type"

l_.str.1:                               ; @.str.1
	.asciz	"name"

l_.str.2:                               ; @.str.2
	.asciz	"address"

l_.str.3:                               ; @.str.3
	.asciz	"port"

	.comm	_INET6_ADDRSTRLEN,4,2           ; @INET6_ADDRSTRLEN
	.no_dead_strip	_proxy_address_get
.subsections_via_symbols
