	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_sta_vht_capab             ## -- Begin function copy_sta_vht_capab
	.p2align	4, 0x90
_copy_sta_vht_capab:                    ## @copy_sta_vht_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	movq	16(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
LBB0_4:
	movq	_WLAN_STA_VHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movq	(%rbx), %rdi
	callq	_os_free
	movq	$0, (%rbx)
LBB0_9:
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movq	%rdx, %rsi
	callq	_check_valid_vht_mcs
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_8
## %bb.6:
	movl	$4, %edi
	callq	_os_zalloc
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	_WLAN_STA_VHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_os_memcpy
	jmp	LBB0_9
LBB0_7:
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_STA_VHT,4,2               ## @WLAN_STA_VHT
	.comm	_WLAN_STATUS_SUCCESS,4,2        ## @WLAN_STATUS_SUCCESS
	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ## @WLAN_STATUS_UNSPECIFIED_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_sta_vht_capab             ; -- Begin function copy_sta_vht_capab
	.p2align	2
_copy_sta_vht_capab:                    ; @copy_sta_vht_capab
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cbz	x2, LBB0_3
; %bb.1:
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _WLAN_STA_VHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_STA_VHT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x0, [x19]
	bl	_os_free
	str	xzr, [x19]
LBB0_4:
Lloh3:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x20, x2
	ldr	x8, [x0]
	ldr	w0, [x8]
	mov	x1, x2
	bl	_check_valid_vht_mcs
	cbz	w0, LBB0_3
; %bb.7:
	ldr	x0, [x19]
	cbnz	x0, LBB0_9
; %bb.8:
	mov	w0, #4
	bl	_os_zalloc
	str	x0, [x19]
	cbz	x0, LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, _WLAN_STA_VHT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WLAN_STA_VHT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x1, x20
	mov	w2, #4
	bl	_os_memcpy
	b	LBB0_4
LBB0_10:
Lloh8:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_STA_VHT,4,2               ; @WLAN_STA_VHT
	.comm	_WLAN_STATUS_SUCCESS,4,2        ; @WLAN_STATUS_SUCCESS
	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
.subsections_via_symbols
