	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetSecureNATOption           ## -- Begin function StGetSecureNATOption
	.p2align	4, 0x90
_StGetSecureNATOption:                  ## @StGetSecureNATOption
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	movq	8(%r15), %r13
	movq	_MAX_HUBNAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	(%r14), %rdx
	movl	%ebx, %esi
	callq	_StrCpy
	movq	%r13, %rdi
	callq	_LockHubList
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_GetHub
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_UnlockHubList
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movq	_HUB_TYPE_FARM_STATIC@GOTPCREL(%rip), %rcx
	movq	_ERR_NOT_SUPPORTED@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_GetServerCapsBool
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	(%r15), %rax
	movq	_SERVER_TYPE_FARM_MEMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_ERR_NOT_FARM_CONTROLLER@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_1:
	movq	_ERR_HUB_NOT_FOUND@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_Zero
	movl	16(%r12), %esi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_Copy
	movq	(%r14), %rdi
	movq	8(%r12), %rdx
	movl	$8, %esi
	callq	_StrCpy
	movl	$1, 8(%r14)
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rbx
LBB0_7:
	movq	%r12, %rdi
	callq	_ReleaseHub
LBB0_8:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_HUBNAME_LEN,4,2            ## @MAX_HUBNAME_LEN
	.comm	_CHECK_RIGHT,4,2                ## @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,4,2          ## @ERR_HUB_NOT_FOUND
	.comm	_HUB_TYPE_FARM_STATIC,8,3       ## @HUB_TYPE_FARM_STATIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"b_support_securenat"

	.comm	_ERR_NOT_SUPPORTED,4,2          ## @ERR_NOT_SUPPORTED
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ## @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_FARM_CONTROLLER,4,2    ## @ERR_NOT_FARM_CONTROLLER
	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StGetSecureNATOption           ; -- Begin function StGetSecureNATOption
	.p2align	2
_StGetSecureNATOption:                  ; @StGetSecureNATOption
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x21, [x0]
	ldr	x22, [x21, #8]
Lloh3:
	adrp	x8, _MAX_HUBNAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_HUBNAME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w1, w8, #1
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x0, x8, x9
	mov	sp, x0
	ldr	x2, [x19]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_StrCpy
	mov	x0, x22
	bl	_LockHubList
	ldr	x1, [x19]
	mov	x0, x22
	bl	_GetHub
	mov	x20, x0
	mov	x0, x22
	bl	_UnlockHubList
	cbz	x20, LBB0_7
; %bb.1:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _HUB_TYPE_FARM_STATIC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HUB_TYPE_FARM_STATIC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_GetServerCapsBool
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _SERVER_TYPE_FARM_MEMBER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SERVER_TYPE_FARM_MEMBER@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
Lloh16:
	adrp	x19, _ERR_NOT_FARM_CONTROLLER@GOTPAGE
Lloh17:
	ldr	x19, [x19, _ERR_NOT_FARM_CONTROLLER@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x19, _ERR_NOT_SUPPORTED@GOTPAGE
Lloh19:
	ldr	x19, [x19, _ERR_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_6:
	mov	x0, x20
	bl	_ReleaseHub
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x19, _ERR_HUB_NOT_FOUND@GOTPAGE
Lloh21:
	ldr	x19, [x19, _ERR_HUB_NOT_FOUND@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x19]
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	mov	w1, #16
	bl	_Zero
	ldr	w1, [x20, #16]
	mov	x0, x19
	mov	w2, #16
	bl	_Copy
	ldr	x0, [x19]
	ldr	x2, [x20, #8]
	mov	w1, #8
	bl	_StrCpy
	mov	w8, #1
	str	w8, [x19, #8]
Lloh25:
	adrp	x19, _ERR_NO_ERROR@GOTPAGE
Lloh26:
	ldr	x19, [x19, _ERR_NO_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_HUBNAME_LEN,4,2            ; @MAX_HUBNAME_LEN
	.comm	_CHECK_RIGHT,4,2                ; @CHECK_RIGHT
	.comm	_ERR_HUB_NOT_FOUND,4,2          ; @ERR_HUB_NOT_FOUND
	.comm	_HUB_TYPE_FARM_STATIC,8,3       ; @HUB_TYPE_FARM_STATIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"b_support_securenat"

	.comm	_ERR_NOT_SUPPORTED,4,2          ; @ERR_NOT_SUPPORTED
	.comm	_SERVER_TYPE_FARM_MEMBER,8,3    ; @SERVER_TYPE_FARM_MEMBER
	.comm	_ERR_NOT_FARM_CONTROLLER,4,2    ; @ERR_NOT_FARM_CONTROLLER
	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
.subsections_via_symbols
