	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_ctrl_iface_get_cred
_wpa_supplicant_ctrl_iface_get_cred:    ## @wpa_supplicant_ctrl_iface_get_cred
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	movl	$32, %esi
	callq	_os_strchr
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	incq	%rbx
	movb	$0, (%rax)
	movq	%r15, %rdi
	callq	_atoi
	movl	%eax, %r15d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_wpa_config_get_cred
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_wpa_config_get_cred_no_key
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_os_strlcpy
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_os_free
	cmpq	%rbx, %r14
	movl	$-1, %r12d
	cmovbl	%r14d, %r12d
	jmp	LBB0_6
LBB0_2:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_6
LBB0_4:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTRL_IFACE: GET_CRED id=%d name='%s'"

L_.str.1:                               ## @.str.1
	.asciz	"CTRL_IFACE: Could not find cred id=%d"

L_.str.2:                               ## @.str.2
	.asciz	"CTRL_IFACE: Failed to get cred variable '%s'"

	.no_dead_strip	_wpa_supplicant_ctrl_iface_get_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_ctrl_iface_get_cred
_wpa_supplicant_ctrl_iface_get_cred:    ; @wpa_supplicant_ctrl_iface_get_cred
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	mov	x0, x1
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	strb	wzr, [x21], #1
	mov	x0, x23
	bl	_atoi
	mov	x23, x0
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
	stp	x23, x21, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x22]
	mov	x1, x23
	bl	_wpa_config_get_cred
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x21
	bl	_wpa_config_get_cred_no_key
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_os_strlcpy
	mov	x20, x0
	mov	x0, x22
	bl	_os_free
	cmp	x20, x19
	csinv	w0, w20, wzr, lo
	b	LBB0_8
LBB0_4:
	ldr	w0, [x24]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w0, [x24]
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_wpa_printf
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTRL_IFACE: GET_CRED id=%d name='%s'"

l_.str.1:                               ; @.str.1
	.asciz	"CTRL_IFACE: Could not find cred id=%d"

l_.str.2:                               ; @.str.2
	.asciz	"CTRL_IFACE: Failed to get cred variable '%s'"

	.no_dead_strip	_wpa_supplicant_ctrl_iface_get_cred
.subsections_via_symbols
