	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_sta_ht_capab              ## -- Begin function copy_sta_ht_capab
	.p2align	4, 0x90
_copy_sta_ht_capab:                     ## @copy_sta_ht_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
	movl	(%rsi), %eax
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	movq	_WLAN_STA_WMM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	8(%rdi), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	(%rdi), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_5
LBB0_4:
	movq	_WLAN_STA_HT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rdi
	callq	_os_free
	movq	$0, 8(%rbx)
LBB0_10:
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rdx, %r14
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_9
## %bb.6:
	movl	$4, %edi
	callq	_os_zalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rdi
	movl	(%rbx), %eax
LBB0_9:
	movq	_WLAN_STA_HT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_os_memcpy
	jmp	LBB0_10
LBB0_7:
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_STA_WMM,4,2               ## @WLAN_STA_WMM
	.comm	_WLAN_STA_HT,4,2                ## @WLAN_STA_HT
	.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_ht_capab              ; -- Begin function copy_sta_ht_capab
	.p2align	2
_copy_sta_ht_capab:                     ; @copy_sta_ht_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
	ldr	w8, [x1]
	cbz	x2, LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _WLAN_STA_WMM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_STA_WMM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	cbz	w9, LBB0_4
; %bb.3:
	ldr	x9, [x0]
	ldr	x9, [x9]
	cbz	x9, LBB0_7
LBB0_4:
Lloh3:
	adrp	x9, _WLAN_STA_HT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WLAN_STA_HT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	x0, [x19, #8]
	bl	_os_free
	str	xzr, [x19, #8]
LBB0_5:
Lloh6:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x20, x2
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_10
; %bb.8:
	mov	w0, #4
	bl	_os_zalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w8, [x19]
LBB0_10:
Lloh8:
	adrp	x9, _WLAN_STA_HT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WLAN_STA_HT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	mov	x1, x20
	mov	w2, #4
	bl	_os_memcpy
	b	LBB0_5
LBB0_11:
Lloh11:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_STA_WMM,4,2               ; @WLAN_STA_WMM
	.comm	_WLAN_STA_HT,4,2                ; @WLAN_STA_HT
	.comm	_WLAN_STATUS_SUCCESS,4,2        ; @WLAN_STATUS_SUCCESS
	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
.subsections_via_symbols
