	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_assoc_update_ie
_wpa_supplicant_assoc_update_ie:        ## @wpa_supplicant_assoc_update_ie
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	cmpl	$0, 4(%rdi)
	je	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movl	(%rax), %edi
	callq	_wpa_key_mgmt_wpa_any
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	4(%rbx), %edi
	movq	_WPA_IE_VENDOR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wpa_bss_get_vendor_ie
	movq	%rax, %r12
	movl	4(%rbx), %edi
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wpa_bss_get_ie
	movq	%rax, %r15
	movl	(%rbx), %edi
	testq	%r12, %r12
	je	LBB0_5
## %bb.6:
	movq	8(%r12), %rdx
	addq	$2, %rdx
	jmp	LBB0_7
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_5:
	xorl	%edx, %edx
LBB0_7:
	movq	%r12, %rsi
	callq	_wpa_sm_set_ap_wpa_ie
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	movl	(%rbx), %edi
	xorl	%r14d, %r14d
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movq	8(%r15), %rdx
	addq	$2, %rdx
	jmp	LBB0_11
LBB0_9:
	xorl	%edx, %edx
LBB0_11:
	movq	%r15, %rsi
	callq	_wpa_sm_set_ap_rsn_ie
	negq	%rax
	sbbl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_IE_VENDOR_TYPE,4,2         ## @WPA_IE_VENDOR_TYPE
	.comm	_WLAN_EID_RSN,4,2               ## @WLAN_EID_RSN
	.no_dead_strip	_wpa_supplicant_assoc_update_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_assoc_update_ie
_wpa_supplicant_assoc_update_ie:        ; @wpa_supplicant_assoc_update_ie
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w0, [x8]
	bl	_wpa_key_mgmt_wpa_any
	cbz	w0, LBB0_8
; %bb.3:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _WPA_IE_VENDOR_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPA_IE_VENDOR_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wpa_bss_get_vendor_ie
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _WLAN_EID_RSN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_wpa_bss_get_ie
	mov	x20, x0
	ldr	w0, [x19]
	cbz	x21, LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	add	x2, x8, #2
	b	LBB0_6
LBB0_5:
	mov	x2, #0
LBB0_6:
	mov	x1, x21
	bl	_wpa_sm_set_ap_wpa_ie
	cbz	x0, LBB0_9
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x19]
	cbz	x20, LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	add	x2, x8, #2
	b	LBB0_12
LBB0_11:
	mov	x2, #0
LBB0_12:
	mov	x1, x20
	bl	_wpa_sm_set_ap_rsn_ie
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_IE_VENDOR_TYPE,4,2         ; @WPA_IE_VENDOR_TYPE
	.comm	_WLAN_EID_RSN,4,2               ; @WLAN_EID_RSN
	.no_dead_strip	_wpa_supplicant_assoc_update_ie
.subsections_via_symbols
