	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setenv_sockaddr                ## -- Begin function setenv_sockaddr
	.p2align	4, 0x90
_setenv_sockaddr:                       ## @setenv_sockaddr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$408, %rsp                      ## imm = 0x198
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	16(%rdx), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.2:
	movq	_SA_IP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rcx
	callq	_openvpn_snprintf
	movl	24(%r13), %edi
	callq	_inet_ntoa
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_setenv_str
	movq	_SA_IP_PORT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.3:
	cmpl	$0, 20(%r13)
	je	LBB0_11
## %bb.4:
	addq	$20, %r13
	jmp	LBB0_10
LBB0_5:
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_IN6_IS_ADDR_V4MAPPED
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rsi
	addq	$48, %rsi
	leaq	-440(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	leaq	L_.str(%rip), %rdx
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rcx
	callq	_openvpn_snprintf
	movl	-440(%rbp), %edi
	callq	_inet_ntoa
	leaq	L_.str.1(%rip), %rdx
	leaq	-432(%rbp), %rdi
	movl	$128, %esi
	movq	%rax, %rcx
	callq	_openvpn_snprintf
	jmp	LBB0_8
LBB0_7:
	leaq	16(%r13), %rbx
	leaq	L_.str.3(%rip), %rdx
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rcx
	callq	_openvpn_snprintf
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-432(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$128, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getnameinfo
LBB0_8:
	leaq	-304(%rbp), %rsi
	leaq	-432(%rbp), %rdx
	movq	%r14, %rdi
	callq	_setenv_str
	movq	_SA_IP_PORT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.9:
	cmpl	$0, (%r13)
	je	LBB0_11
LBB0_10:
	leaq	L_.str.2(%rip), %rdx
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rcx
	callq	_openvpn_snprintf
	movl	(%r13), %edi
	callq	_ntohs
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_setenv_int
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$408, %rsp                      ## imm = 0x198
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SA_IP_PORT,4,2                 ## @SA_IP_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s_ip"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"%s_port"

L_.str.3:                               ## @.str.3
	.asciz	"%s_ip6"

	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setenv_sockaddr                ; -- Begin function setenv_sockaddr
	.p2align	2
_setenv_sockaddr:                       ; @setenv_sockaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #480
	.cfi_def_cfa_offset 480
	stp	x28, x27, [sp, #400]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #416]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #432]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #448]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #464]            ; 16-byte Folded Spill
	add	x29, sp, #464
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	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, #-72]
	mov	x23, x2
	ldr	w8, [x23, #16]!
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.2:
Lloh3:
	adrp	x23, _SA_IP_PORT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SA_IP_PORT@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
Lloh7:
	adrp	x10, l_.str.1@PAGE
Lloh8:
	add	x10, x10, l_.str.1@PAGEOFF
	tst	w8, w22
	csel	x2, x10, x9, eq
	add	x0, sp, #136
	mov	w1, #256
	mov	x3, x21
	bl	_openvpn_snprintf
	ldr	w0, [x20, #24]
	bl	_inet_ntoa
	mov	x2, x0
	add	x1, sp, #136
	mov	x0, x19
	bl	_setenv_str
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.3:
	ldr	w8, [x20, #20]!
	cbnz	w8, LBB0_9
	b	LBB0_10
LBB0_4:
	add	x24, x20, #8
	mov	x0, x24
	bl	_IN6_IS_ADDR_V4MAPPED
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x24]
	add	x1, x8, #48
	mov	x0, sp
	mov	w2, #4
	bl	_memcpy
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #136
	mov	w1, #256
	mov	x3, x21
	bl	_openvpn_snprintf
	ldr	w0, [sp]
	bl	_inet_ntoa
	mov	x3, x0
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #128
	bl	_openvpn_snprintf
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #136
	mov	w1, #256
	mov	x3, x21
	bl	_openvpn_snprintf
Lloh15:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh17:
	ldr	w6, [x8]
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #4
	mov	w3, #128
	mov	x4, #0
	mov	w5, #0
	bl	_getnameinfo
LBB0_7:
	add	x1, sp, #136
	add	x2, sp, #8
	mov	x0, x19
	bl	_setenv_str
Lloh18:
	adrp	x8, _SA_IP_PORT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SA_IP_PORT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x20]
	cbz	w8, LBB0_10
LBB0_9:
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #136
	mov	w1, #256
	mov	x3, x21
	bl	_openvpn_snprintf
	ldr	w0, [x20]
	bl	_ntohs
	mov	x2, x0
	add	x1, sp, #136
	mov	x0, x19
	bl	_setenv_int
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #464]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #448]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #432]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #416]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #400]            ; 16-byte Folded Reload
	add	sp, sp, #480
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SA_IP_PORT,4,2                 ; @SA_IP_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s_ip"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"%s_port"

l_.str.3:                               ; @.str.3
	.asciz	"%s_ip6"

	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
.subsections_via_symbols
