	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_select_network ## -- Begin function wpas_dbus_handler_select_network
	.p2align	4, 0x90
_wpas_dbus_handler_select_network:      ## @wpas_dbus_handler_select_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_DBUS_TYPE_OBJECT_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DBUS_TYPE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-40(%rbp), %rcx
	xorl	%esi, %esi
	callq	_dbus_message_get_args
	movq	-40(%rbp), %rdi
	movq	_WPAS_DBUS_NEW_NETWORKS_PART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_wpas_dbus_new_decompose_object_path
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpq	$0, -48(%rbp)
	je	LBB0_5
## %bb.2:
	movl	4(%r15), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoul
	cmpq	$0, (%rbx)
	je	LBB0_8
LBB0_5:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wpas_dbus_error_invalid_args
LBB0_6:
	movq	%rax, %rbx
LBB0_7:
	movq	%r12, %rdi
	callq	_os_free
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_wpa_config_get_network
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_wpa_supplicant_select_network
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_10:
	movq	%r14, %rdi
	callq	_wpas_dbus_error_network_unknown
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DBUS_TYPE_OBJECT_PATH,4,2      ## @DBUS_TYPE_OBJECT_PATH
	.comm	_DBUS_TYPE_INVALID,4,2          ## @DBUS_TYPE_INVALID
	.comm	_WPAS_DBUS_NEW_NETWORKS_PART,4,2 ## @WPAS_DBUS_NEW_NETWORKS_PART
	.comm	_errno,8,3                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_handler_select_network ; -- Begin function wpas_dbus_handler_select_network
	.p2align	2
_wpas_dbus_handler_select_network:      ; @wpas_dbus_handler_select_network
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DBUS_TYPE_OBJECT_PATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBUS_TYPE_OBJECT_PATH@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _DBUS_TYPE_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBUS_TYPE_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	add	x3, sp, #8
	mov	x1, #0
	bl	_dbus_message_get_args
	ldr	x0, [sp, #8]
Lloh6:
	adrp	x8, _WPAS_DBUS_NEW_NETWORKS_PART@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WPAS_DBUS_NEW_NETWORKS_PART@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_wpas_dbus_new_decompose_object_path
	mov	x19, x0
	ldr	x8, [sp]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_4
; %bb.1:
	ldr	w1, [x21, #4]
	cbz	w1, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_os_strcmp
	cbnz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x22, _errno@GOTPAGE
Lloh10:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	ldr	x0, [sp]
	mov	x1, #0
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [x22]
	cbz	x8, LBB0_7
LBB0_4:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_wpas_dbus_error_invalid_args
LBB0_5:
	mov	x20, x0
LBB0_6:
	mov	x0, x19
	bl	_os_free
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x1, x0
	ldr	w0, [x21]
	bl	_wpa_config_get_network
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, x0
	mov	x0, x21
	bl	_wpa_supplicant_select_network
	mov	x20, #0
	b	LBB0_6
LBB0_9:
	mov	x0, x20
	bl	_wpas_dbus_error_network_unknown
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DBUS_TYPE_OBJECT_PATH,4,2      ; @DBUS_TYPE_OBJECT_PATH
	.comm	_DBUS_TYPE_INVALID,4,2          ; @DBUS_TYPE_INVALID
	.comm	_WPAS_DBUS_NEW_NETWORKS_PART,4,2 ; @WPAS_DBUS_NEW_NETWORKS_PART
	.comm	_errno,8,3                      ; @errno
.subsections_via_symbols
