	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_wps_remove_dup_network
_wpas_wps_remove_dup_network:           ## @wpas_wps_remove_dup_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_39
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rsi, %rsi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r13, %r13
	je	LBB0_39
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r12
	movq	104(%r13), %r13
	cmpq	%rbx, %r12
	je	LBB0_38
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	jne	LBB0_4
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_38
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	8(%rbx), %rdx
	jne	LBB0_38
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	88(%r12), %rdi
	movq	88(%rbx), %rsi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rsi, %rsi
	je	LBB0_38
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_38
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_38
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rdi
	cmpq	24(%rbx), %rdi
	jne	LBB0_38
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r12), %eax
	movl	32(%rbx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	andl	%eax, %ecx
	movq	_WPA_CIPHER_CCMP@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_38
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r12), %rax
	testq	%rax, %rax
	je	LBB0_33
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	40(%rbx), %rax
	jne	LBB0_33
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_wpa_key_mgmt_wpa_psk
	testq	%rax, %rax
	je	LBB0_33
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	64(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_38
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	96(%r12), %rdi
	movq	96(%rbx), %rsi
	movl	(%r15), %edx
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_38
	jmp	LBB0_6
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	56(%r12), %eax
	cmpl	56(%rbx), %eax
	jne	LBB0_38
## %bb.34:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	52(%r12), %eax
	cmpl	52(%rbx), %eax
	jne	LBB0_38
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wpas_notify_network_removed
	cmpq	%r12, 8(%r14)
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 8(%r14)
LBB0_37:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	movl	48(%r12), %esi
	callq	_wpa_config_remove_network
	jmp	LBB0_38
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 80(%rbx)
	je	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 80(%r12)
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	72(%rbx), %rdi
	movq	72(%r12), %rsi
	movl	$32, %edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_23
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 64(%rbx)
	movq	64(%r12), %rax
	je	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	56(%r12), %eax
	orl	%eax, 56(%rbx)
	movl	52(%r12), %eax
	orl	%eax, 52(%rbx)
	jmp	LBB0_35
LBB0_31:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_30
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_38
LBB0_39:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WPA_CIPHER_CCMP,4,2            ## @WPA_CIPHER_CCMP
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: M8 Creds with different passphrase - do not merge"

L_.str.1:                               ## @.str.1
	.asciz	"WPS: M8 Creds with different PSK - do not merge"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: M8 Creds with different passphrase/PSK type - do not merge"

L_.str.3:                               ## @.str.3
	.asciz	"WPS: Workaround - merge likely WPA/WPA2-mixed mode creds in same M8 message"

L_.str.4:                               ## @.str.4
	.asciz	"Remove duplicate network %d"

	.no_dead_strip	_wpas_wps_remove_dup_network
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_wps_remove_dup_network
_wpas_wps_remove_dup_network:           ; @wpas_wps_remove_dup_network
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	ldr	x27, [x8]
	cbz	x27, LBB0_38
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str.4@PAGE
Lloh3:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh4:
	adrp	x24, l_.str.1@PAGE
Lloh5:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh6:
	adrp	x22, _WPA_CIPHER_CCMP@GOTPAGE
Lloh7:
	ldr	x22, [x22, _WPA_CIPHER_CCMP@GOTPAGEOFF]
Lloh8:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
Lloh10:
	adrp	x25, l_.str@PAGE
Lloh11:
	add	x25, x25, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x1, LBB0_11
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x27, LBB0_38
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x27
	ldr	x27, [x27, #104]
	cmp	x26, x19
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x19]
	orr	x10, x8, x9
	cbnz	x10, LBB0_22
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x26, #8]
	cbz	x2, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	cmp	x2, x8
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x26, #88]
	ldr	x1, [x19, #88]
	cbz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x1, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcmp
	cbnz	x0, LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26, #16]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x26, #24]
	ldr	x8, [x19, #24]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #32]
	ldr	w9, [x19, #32]
	cmp	w8, w9
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w9, w8
	ldr	w9, [x22]
	tst	w8, w9
	b.eq	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26, #40]
	cbz	x8, LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_wpa_key_mgmt_wpa_psk
	cbz	x0, LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_29
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x26, #64]
	cbz	x1, LBB0_29
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_os_strcmp
	cbz	x0, LBB0_29
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
	mov	x1, x25
	bl	_wpa_printf
	b	LBB0_3
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x26, #96]
	ldr	x1, [x19, #96]
	ldr	w2, [x23]
	bl	_os_memcmp
	cbnz	x0, LBB0_3
	b	LBB0_6
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #56]
	ldr	w9, [x19, #56]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #52]
	ldr	w9, [x19, #52]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
	ldr	w8, [x26, #48]
	str	x8, [sp]
	mov	x1, x21
	bl	_wpa_printf
	mov	x0, x20
	mov	x1, x26
	bl	_wpas_notify_network_removed
	ldr	x8, [x20, #8]
	cmp	x8, x26
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x20, #8]
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20]
	ldr	w1, [x26, #48]
	bl	_wpa_config_remove_network
	b	LBB0_3
LBB0_29:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26, #80]
	cbz	x8, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #72]
	ldr	x1, [x26, #72]
	mov	w2, #32
	bl	_os_memcmp
	cbz	x0, LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
	mov	x1, x24
	bl	_wpa_printf
	b	LBB0_3
LBB0_33:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #64]
	ldr	x8, [x26, #64]
	cbz	x9, LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	x8, LBB0_37
LBB0_35:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldur	d0, [x26, #52]
	ldur	d1, [x19, #52]
	orr.8b	v0, v1, v0
	stur	d0, [x19, #52]
	b	LBB0_26
LBB0_36:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x8, LBB0_35
LBB0_37:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_3
LBB0_38:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WPA_CIPHER_CCMP,4,2            ; @WPA_CIPHER_CCMP
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: M8 Creds with different passphrase - do not merge"

l_.str.1:                               ; @.str.1
	.asciz	"WPS: M8 Creds with different PSK - do not merge"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: M8 Creds with different passphrase/PSK type - do not merge"

l_.str.3:                               ; @.str.3
	.asciz	"WPS: Workaround - merge likely WPA/WPA2-mixed mode creds in same M8 message"

l_.str.4:                               ; @.str.4
	.asciz	"Remove duplicate network %d"

	.no_dead_strip	_wpas_wps_remove_dup_network
.subsections_via_symbols
