	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nat_SetTarget                  ## -- Begin function nat_SetTarget
	.p2align	4, 0x90
_nat_SetTarget:                         ## @nat_SetTarget
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %edx
	movslq	4(%rdi), %rcx
	cmpl	%ecx, %edx
	jne	LBB0_2
LBB0_1:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_la@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_7:
	callq	_LibAliasSetTarget
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	leal	1(%rcx), %esi
	movl	$-1, %eax
	cmpl	%esi, %edx
	jne	LBB0_8
## %bb.3:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax,%rcx,4), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	8(%rbx), %rax
	movslq	4(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_GetIpAddr
	movq	_INADDR_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movslq	4(%rbx), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_log_Printf
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	_la@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_INADDR_ANY,8,3                 ## @INADDR_ANY
	.comm	_la,4,2                         ## @la
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MYADDR"

	.comm	_INADDR_NONE,8,3                ## @INADDR_NONE
	.comm	_LogWARN,4,2                    ## @LogWARN
L_.str.1:                               ## @.str.1
	.asciz	"%s: invalid address\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nat_SetTarget                  ; -- Begin function nat_SetTarget
	.p2align	2
_nat_SetTarget:                         ; @nat_SetTarget
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	w9, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	cmp	w9, w8
	b.ne	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
LBB0_2:
Lloh3:
	adrp	x8, _la@GOTPAGE
Lloh4:
	ldr	x8, [x8, _la@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_LibAliasSetTarget
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	add	w10, w8, #1
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.4:
	mov	x19, x0
	ldr	x9, [x0, #8]
	ldr	w0, [x9, x8, lsl #2]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_1
; %bb.5:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	ldr	w0, [x8, x9, lsl #2]
	bl	_GetIpAddr
Lloh8:
	adrp	x8, _INADDR_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INADDR_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.6:
Lloh11:
	adrp	x8, _LogWARN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	ldr	w2, [x8, x9, lsl #2]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_Printf
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x1, x0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_INADDR_ANY,8,3                 ; @INADDR_ANY
	.comm	_la,4,2                         ; @la
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MYADDR"

	.comm	_INADDR_NONE,8,3                ; @INADDR_NONE
	.comm	_LogWARN,4,2                    ; @LogWARN
l_.str.1:                               ; @.str.1
	.asciz	"%s: invalid address\n"

.subsections_via_symbols
