	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_ctrl_iface_set_network
_wpa_supplicant_ctrl_iface_set_network: ## @wpa_supplicant_ctrl_iface_set_network
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_os_strchr
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	incq	%rbx
	movb	$0, (%rax)
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r13
	incq	%r13
	movb	$0, (%rax)
	movq	%r14, %rdi
	callq	_atoi
	movl	%eax, %r14d
	movq	%r15, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r15), %r15d
	movq	%r13, %rdi
	callq	_os_strlen
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_wpa_hexdump_ascii_key
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_wpa_config_get_network
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %r14d
	movl	8(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_os_memcpy
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_wpa_supplicant_ctrl_iface_update_network
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r15)
	jne	LBB0_7
## %bb.6:
	movl	8(%r15), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_wpas_notify_network_bssid_set_changed
LBB0_8:
	movl	4(%r15), %eax
	cmpl	%eax, %r14d
	je	LBB0_12
## %bb.9:
	cmpl	$2, %r14d
	je	LBB0_11
## %bb.10:
	cmpl	$2, %eax
	jne	LBB0_12
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_wpas_notify_network_type_changed
	jmp	LBB0_12
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r12d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTRL_IFACE: SET_NETWORK id=%d name='%s'"

L_.str.1:                               ## @.str.1
	.asciz	"CTRL_IFACE: value"

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

	.no_dead_strip	_wpa_supplicant_ctrl_iface_set_network
.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_set_network
_wpa_supplicant_ctrl_iface_set_network: ; @wpa_supplicant_ctrl_iface_set_network
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x1
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x0
	strb	wzr, [x21], #1
	mov	x0, x21
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_12
; %bb.2:
	mov	x23, x0
	strb	wzr, [x23], #1
	mov	x0, x22
	bl	_atoi
	mov	x24, x0
Lloh7:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
	str	x21, [sp, #-16]!
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_wpa_printf
	add	sp, sp, #16
	ldr	w22, [x26]
	mov	x0, x23
	bl	_os_strlen
	mov	x3, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_wpa_hexdump_ascii_key
	ldr	w0, [x19]
	mov	x1, x24
	bl	_wpa_config_get_network
	cbz	x0, LBB0_11
; %bb.3:
	mov	x22, x0
	ldp	w26, w24, [x0]
	ldr	w1, [x0, #8]
	ldr	w2, [x25]
	mov	x0, x20
	bl	_os_memcpy
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	_wpa_supplicant_ctrl_iface_update_network
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w8, [x22]
	cmp	w8, w26
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x22, #8]
	ldr	w2, [x25]
	mov	x1, x20
	bl	_os_memcmp
	cbz	x0, LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x22
	bl	_wpas_notify_network_bssid_set_changed
LBB0_7:
	ldr	w8, [x22, #4]
	cmp	w24, w8
	b.eq	LBB0_13
; %bb.8:
	cmp	w24, #2
	b.eq	LBB0_10
; %bb.9:
	cmp	w8, #2
	b.ne	LBB0_13
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	bl	_wpas_notify_network_type_changed
	b	LBB0_13
LBB0_11:
	ldr	w0, [x26]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_wpa_printf
LBB0_12:
	mov	w21, #-1
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x21
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTRL_IFACE: SET_NETWORK id=%d name='%s'"

l_.str.1:                               ; @.str.1
	.asciz	"CTRL_IFACE: value"

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

	.no_dead_strip	_wpa_supplicant_ctrl_iface_set_network
.subsections_via_symbols
