	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_crypto_settings
_nl80211_crypto_settings:               ## @nl80211_crypto_settings
	.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
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	(%r14), %rax
	movq	_NL80211_ATTR_CONTROL_PORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, 56(%r13)
	movq	_NL80211_ATTR_CONTROL_PORT_ETHERTYPE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	callq	_nla_get_u16
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_cpu_to_be16
	movq	%rax, 48(%r13)
	movq	_WIPHY_FLAG_CONTROL_PORT_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_3
## %bb.2:
	movq	_ETH_P_PAE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_22
LBB0_3:
	movq	(%r14), %rax
	movq	_NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_6
## %bb.4:
	movl	$1, (%r13)
	jmp	LBB0_6
LBB0_5:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_ETH_P_PAE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_be16
	movq	%rax, 48(%r13)
	movq	(%r14), %rax
LBB0_6:
	movq	_NL80211_ATTR_CIPHER_SUITES_PAIRWISE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.7:
	callq	_nla_data
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_len
	movl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, 4(%r13)
	testb	$3, %al
	jne	LBB0_22
## %bb.8:
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jg	LBB0_22
## %bb.9:
	movq	40(%r13), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	cmpl	$0, 4(%r13)
	jle	LBB0_13
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r15, %rdi
	callq	_cfg80211_supported_cipher_suite
	testl	%eax, %eax
	je	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	movq	(%r14), %rax
	movq	_NL80211_ATTR_CIPHER_SUITE_GROUP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.14:
	callq	_nla_get_u32
	movq	%rax, 32(%r13)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_cfg80211_supported_cipher_suite
	testl	%eax, %eax
	je	LBB0_22
## %bb.15:
	movq	(%r14), %rax
LBB0_16:
	movq	_NL80211_ATTR_WPA_VERSIONS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.17:
	callq	_nla_get_u32
	movq	%rax, 24(%r13)
	movq	%rax, %rdi
	callq	_nl80211_valid_wpa_versions
	testl	%eax, %eax
	je	LBB0_22
## %bb.18:
	movq	(%r14), %rax
LBB0_19:
	movq	_NL80211_ATTR_AKM_SUITES@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.20:
	callq	_nla_data
	movq	%rax, %r15
	movq	(%r14), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_len
	movl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, 8(%r13)
	testb	$3, %al
	jne	LBB0_22
## %bb.21:
	movq	_NL80211_MAX_NR_AKM_SUITES@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jle	LBB0_23
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	16(%r13), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcpy
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_CONTROL_PORT,8,3  ## @NL80211_ATTR_CONTROL_PORT
	.comm	_NL80211_ATTR_CONTROL_PORT_ETHERTYPE,8,3 ## @NL80211_ATTR_CONTROL_PORT_ETHERTYPE
	.comm	_WIPHY_FLAG_CONTROL_PORT_PROTOCOL,4,2 ## @WIPHY_FLAG_CONTROL_PORT_PROTOCOL
	.comm	_ETH_P_PAE,8,3                  ## @ETH_P_PAE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT,8,3 ## @NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT
	.comm	_NL80211_ATTR_CIPHER_SUITES_PAIRWISE,8,3 ## @NL80211_ATTR_CIPHER_SUITES_PAIRWISE
	.comm	_NL80211_ATTR_CIPHER_SUITE_GROUP,8,3 ## @NL80211_ATTR_CIPHER_SUITE_GROUP
	.comm	_NL80211_ATTR_WPA_VERSIONS,8,3  ## @NL80211_ATTR_WPA_VERSIONS
	.comm	_NL80211_ATTR_AKM_SUITES,8,3    ## @NL80211_ATTR_AKM_SUITES
	.comm	_NL80211_MAX_NR_AKM_SUITES,4,2  ## @NL80211_MAX_NR_AKM_SUITES
	.no_dead_strip	_nl80211_crypto_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_crypto_settings
_nl80211_crypto_settings:               ; @nl80211_crypto_settings
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _NL80211_ATTR_CONTROL_PORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_ATTR_CONTROL_PORT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	str	x9, [x19, #56]
Lloh3:
	adrp	x9, _NL80211_ATTR_CONTROL_PORT_ETHERTYPE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_ATTR_CONTROL_PORT_ETHERTYPE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_nla_get_u16
	mov	x23, x0
	bl	_cpu_to_be16
	str	x0, [x19, #48]
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _WIPHY_FLAG_CONTROL_PORT_PROTOCOL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WIPHY_FLAG_CONTROL_PORT_PROTOCOL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh9:
	adrp	x9, _ETH_P_PAE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETH_P_PAE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x23, x9, #4, eq
	b.ne	LBB0_21
; %bb.2:
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_5
; %bb.3:
	mov	w9, #1
	str	w9, [x19]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _ETH_P_PAE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETH_P_PAE@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	bl	_cpu_to_be16
	str	x0, [x19, #48]
	ldr	x8, [x20]
LBB0_5:
Lloh18:
	adrp	x24, _NL80211_ATTR_CIPHER_SUITES_PAIRWISE@GOTPAGE
Lloh19:
	ldr	x24, [x24, _NL80211_ATTR_CIPHER_SUITES_PAIRWISE@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_12
; %bb.6:
	bl	_nla_data
	mov	x23, x0
	ldr	x8, [x20]
	ldr	x9, [x24]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_len
	asr	w8, w0, #2
	str	w8, [x19, #4]
	tst	w0, #0x3
	b.ne	LBB0_21
; %bb.7:
	cmp	w8, w22
	b.gt	LBB0_21
; %bb.8:
	mov	x2, x0
	ldr	x0, [x19, #40]
	mov	x1, x23
	bl	_memcpy
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x1, [x8, x22, lsl #3]
	mov	x0, x21
	bl	_cfg80211_supported_cipher_suite
	cbz	w0, LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.lt	LBB0_10
LBB0_12:
	ldr	x8, [x20]
Lloh20:
	adrp	x9, _NL80211_ATTR_CIPHER_SUITE_GROUP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NL80211_ATTR_CIPHER_SUITE_GROUP@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_15
; %bb.13:
	bl	_nla_get_u32
	mov	x1, x0
	str	x0, [x19, #32]
	mov	x0, x21
	bl	_cfg80211_supported_cipher_suite
	cbz	w0, LBB0_21
; %bb.14:
	ldr	x8, [x20]
LBB0_15:
Lloh23:
	adrp	x9, _NL80211_ATTR_WPA_VERSIONS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NL80211_ATTR_WPA_VERSIONS@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_18
; %bb.16:
	bl	_nla_get_u32
	str	x0, [x19, #24]
	bl	_nl80211_valid_wpa_versions
	cbz	w0, LBB0_21
; %bb.17:
	ldr	x8, [x20]
LBB0_18:
Lloh26:
	adrp	x22, _NL80211_ATTR_AKM_SUITES@GOTPAGE
Lloh27:
	ldr	x22, [x22, _NL80211_ATTR_AKM_SUITES@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_22
; %bb.19:
	bl	_nla_data
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_len
	asr	w8, w0, #2
	str	w8, [x19, #8]
	tst	w0, #0x3
	b.ne	LBB0_21
; %bb.20:
Lloh28:
	adrp	x9, _NL80211_MAX_NR_AKM_SUITES@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NL80211_MAX_NR_AKM_SUITES@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_23
LBB0_21:
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	x2, x0
	ldr	x0, [x19, #16]
	mov	x1, x21
	bl	_memcpy
	mov	w0, #0
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_CONTROL_PORT,8,3  ; @NL80211_ATTR_CONTROL_PORT
	.comm	_NL80211_ATTR_CONTROL_PORT_ETHERTYPE,8,3 ; @NL80211_ATTR_CONTROL_PORT_ETHERTYPE
	.comm	_WIPHY_FLAG_CONTROL_PORT_PROTOCOL,4,2 ; @WIPHY_FLAG_CONTROL_PORT_PROTOCOL
	.comm	_ETH_P_PAE,8,3                  ; @ETH_P_PAE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT,8,3 ; @NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT
	.comm	_NL80211_ATTR_CIPHER_SUITES_PAIRWISE,8,3 ; @NL80211_ATTR_CIPHER_SUITES_PAIRWISE
	.comm	_NL80211_ATTR_CIPHER_SUITE_GROUP,8,3 ; @NL80211_ATTR_CIPHER_SUITE_GROUP
	.comm	_NL80211_ATTR_WPA_VERSIONS,8,3  ; @NL80211_ATTR_WPA_VERSIONS
	.comm	_NL80211_ATTR_AKM_SUITES,8,3    ; @NL80211_ATTR_AKM_SUITES
	.comm	_NL80211_MAX_NR_AKM_SUITES,4,2  ; @NL80211_MAX_NR_AKM_SUITES
	.no_dead_strip	_nl80211_crypto_settings
.subsections_via_symbols
