	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_get_fqdn
_cmd_get_fqdn:                          ## @cmd_get_fqdn
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_node_from_file
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rsi
	callq	_get_child_node
	movl	(%r15), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rsi
	callq	_xml_node_get_text
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_xml_node_free
	testq	%r14, %r14
	je	LBB0_8
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_fputs
	movq	%rbx, %rdi
	callq	_fclose
LBB0_5:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_xml_node_get_text_free
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rsi
	callq	_xml_node_free
LBB0_8:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_xml_node_get_text_free
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not read or parse '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"HomeSP/FQDN"

L_.str.2:                               ## @.str.2
	.asciz	"pps-fqdn"

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

	.no_dead_strip	_cmd_get_fqdn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_get_fqdn
_cmd_get_fqdn:                          ; @cmd_get_fqdn
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_node_from_file
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_get_child_node
	mov	x1, x0
	ldr	w0, [x19]
	cbz	x1, LBB0_7
; %bb.2:
	bl	_xml_node_get_text
	mov	x20, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_xml_node_free
	cbz	x20, LBB0_8
; %bb.3:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_5
; %bb.4:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_fputs
	mov	x0, x21
	bl	_fclose
LBB0_5:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_xml_node_get_text_free
	mov	w0, #0
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
	b	LBB0_9
LBB0_7:
	mov	x1, x21
	bl	_xml_node_free
LBB0_8:
	ldr	w0, [x19]
	mov	x1, #0
	bl	_xml_node_get_text_free
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not read or parse '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"HomeSP/FQDN"

l_.str.2:                               ; @.str.2
	.asciz	"pps-fqdn"

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

	.no_dead_strip	_cmd_get_fqdn
.subsections_via_symbols
