	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_get_rsn_capab
_ath6kl_get_rsn_capab:                  ## @ath6kl_get_rsn_capab
	.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
	movq	%rsi, %r14
	movl	4(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_WLAN_EID_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdi), %edx
	movl	%eax, %edi
	callq	_cfg80211_find_ie
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	8(%rax), %r12
	cmpq	$1, %r12
	ja	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-2(%r12), %rax
	xorl	%ebx, %ebx
	cmpq	$4, %rax
	jb	LBB0_9
## %bb.5:
	addq	$-6, %r12
	cmpq	$2, %r12
	jb	LBB0_9
## %bb.6:
	addq	$64, %r15
	movq	%r15, %rdi
	callq	_get_unaligned_le16
                                        ## kill: def $eax killed $eax def $rax
	leal	2(,%rax,4), %eax
	cltq
	subq	%rax, %r12
	cmpq	$2, %r12
	jb	LBB0_9
## %bb.7:
	leaq	(%r15,%rax,8), %r15
	movq	%r15, %rdi
	callq	_get_unaligned_le16
                                        ## kill: def $eax killed $eax def $rax
	leal	2(,%rax,4), %eax
	cltq
	subq	%rax, %r12
	cmpq	$2, %r12
	jb	LBB0_9
## %bb.8:
	leaq	(%r15,%rax,8), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_memcpy
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WLAN_EID_RSN,4,2               ## @WLAN_EID_RSN
	.no_dead_strip	_ath6kl_get_rsn_capab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_get_rsn_capab
_ath6kl_get_rsn_capab:                  ; @ath6kl_get_rsn_capab
	.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
	mov	x19, x1
	ldr	w1, [x0, #4]
	cbz	w1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _WLAN_EID_RSN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_RSN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w2, [x0]
	mov	x0, x8
	bl	_cfg80211_find_ie
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x0, #8]
	cmp	x8, #1
	b.hi	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	sub	x9, x8, #2
	cmp	x9, #4
	b.lo	LBB0_10
; %bb.6:
	sub	x22, x8, #6
	cmp	x22, #2
	b.lo	LBB0_10
; %bb.7:
	add	x20, x0, #64
	mov	x0, x20
	bl	_get_unaligned_le16
	mov	w21, #2
	mov	w8, #2
	bfi	w8, w0, #2, #30
	sxtw	x8, w8
	sub	x22, x22, x8
	cmp	x22, #2
	b.lo	LBB0_10
; %bb.8:
	add	x20, x20, x8, lsl #3
	mov	x0, x20
	bl	_get_unaligned_le16
	bfi	w21, w0, #2, #30
	sxtw	x8, w21
	sub	x9, x22, x8
	cmp	x9, #2
	b.lo	LBB0_10
; %bb.9:
	add	x1, x20, x8, lsl #3
	mov	x0, x19
	mov	w2, #2
	bl	_memcpy
LBB0_10:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WLAN_EID_RSN,4,2               ; @WLAN_EID_RSN
	.no_dead_strip	_ath6kl_get_rsn_capab
.subsections_via_symbols
