	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pps_cred_realm
_set_pps_cred_realm:                    ## @set_pps_cred_realm
	.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	$424, %rsp                      ## imm = 0x1A8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	4(%rdi), %edi
	movq	%rdx, %rsi
	callq	_xml_node_get_text
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %esi
	movq	%rbx, %rcx
	callq	_set_cred_quoted
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_3:
	movl	4(%r13), %edi
	movq	%rbx, %rsi
	callq	_xml_node_get_text_free
	testl	%r12d, %r12d
	je	LBB0_4
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$424, %rsp                      ## imm = 0x1A8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-464(%rbp), %rdi
	movl	$200, %esi
	callq	_getcwd
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	L_.str.3(%rip), %rdx
	leaq	-256(%rbp), %rdi
	leaq	-464(%rbp), %rcx
	movl	$200, %esi
	movq	%r15, %r8
	callq	_os_snprintf
	movl	$200, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	leaq	-256(%rbp), %rdi
	callq	_os_file_exists
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rdx
	leaq	-256(%rbp), %rcx
	movl	%r14d, %esi
	callq	_set_cred_quoted
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"- Credential/Realm = %s"

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

L_.str.2:                               ## @.str.2
	.asciz	"Failed to set cred realm"

L_.str.3:                               ## @.str.3
	.asciz	"%s/SP/%s/aaa-ca.pem"

L_.str.4:                               ## @.str.4
	.asciz	"ca_cert"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to set CA cert"

	.no_dead_strip	_set_pps_cred_realm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pps_cred_realm
_set_pps_cred_realm:                    ; @set_pps_cred_realm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #496
	.cfi_def_cfa_offset 496
	stp	x28, x27, [sp, #416]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #432]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #448]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #464]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #480]            ; 16-byte Folded Spill
	add	x29, sp, #480
	.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, x4
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	w0, [x0, #4]
	mov	x1, x2
	bl	_xml_node_get_text
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
Lloh3:
	adrp	x24, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x24]
	str	x23, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x20]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x3, x23
	bl	_set_cred_quoted
	tbz	x0, #63, LBB0_3
; %bb.2:
	ldr	w0, [x24]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_3:
	ldr	w0, [x20, #4]
	mov	x1, x23
	bl	_xml_node_get_text_free
	cbz	w22, LBB0_6
LBB0_4:
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.5:
	ldp	x29, x30, [sp, #480]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #464]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #448]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #432]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #416]            ; 16-byte Folded Reload
	add	sp, sp, #496
	ret
LBB0_6:
	add	x0, sp, #8
	mov	w1, #200
	bl	_getcwd
	cbz	x0, LBB0_4
; %bb.7:
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #208
	add	x3, sp, #8
	mov	w1, #200
	mov	x4, x21
	bl	_os_snprintf
	mov	x1, x0
	mov	w0, #200
	bl	_os_snprintf_error
	cbnz	x0, LBB0_4
; %bb.8:
	add	x0, sp, #208
	bl	_os_file_exists
	cbz	x0, LBB0_4
; %bb.9:
	ldr	w0, [x20]
Lloh16:
	adrp	x2, l_.str.4@PAGE
Lloh17:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x3, sp, #208
	mov	x1, x19
	bl	_set_cred_quoted
	tbz	x0, #63, LBB0_4
; %bb.10:
	ldr	w0, [x24]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	b	LBB0_4
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"- Credential/Realm = %s"

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

l_.str.2:                               ; @.str.2
	.asciz	"Failed to set cred realm"

l_.str.3:                               ; @.str.3
	.asciz	"%s/SP/%s/aaa-ca.pem"

l_.str.4:                               ; @.str.4
	.asciz	"ca_cert"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to set CA cert"

	.no_dead_strip	_set_pps_cred_realm
.subsections_via_symbols
