	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_get_ht_capab           ## -- Begin function hostapd_get_ht_capab
	.p2align	4, 0x90
_hostapd_get_ht_capab:                  ## @hostapd_get_ht_capab
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	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	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	movl	$4, %edx
	callq	_os_memcpy
	movl	(%r14), %edi
	callq	_le_to_host16
	movq	(%rbx), %rcx
	movl	(%rcx), %r8d
	movq	_HT_CAP_INFO_RX_STBC_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%r9d, %ecx
	orl	%r8d, %ecx
	movq	_HT_CAP_INFO_TX_STBC@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
	orl	%ebx, %ecx
	movq	_HT_CAP_INFO_SMPS_MASK@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	movl	%r9d, %edx
	andl	%r8d, %edx
	movl	%ebx, %esi
	notl	%esi
	xorl	%edi, %edi
	negl	%edx
	movl	$0, %edx
	sbbl	%edx, %edx
	orl	%esi, %edx
	andl	%eax, %edx
	andl	%r8d, %ebx
	negl	%ebx
	sbbl	%edi, %edi
	notl	%r9d
	orl	%r9d, %edi
	andl	%edx, %edi
	andl	%ecx, %edi
	callq	_host_to_le16
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HT_CAP_INFO_RX_STBC_MASK,4,2   ## @HT_CAP_INFO_RX_STBC_MASK
	.comm	_HT_CAP_INFO_TX_STBC,4,2        ## @HT_CAP_INFO_TX_STBC
	.comm	_HT_CAP_INFO_SMPS_MASK,4,2      ## @HT_CAP_INFO_SMPS_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_get_ht_capab           ; -- Begin function hostapd_get_ht_capab
	.p2align	2
_hostapd_get_ht_capab:                  ; @hostapd_get_ht_capab
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_2
; %bb.1:
	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, x2
	mov	x20, x0
	mov	x0, x2
	mov	w2, #4
	bl	_os_memcpy
	ldr	w0, [x19]
	bl	_le_to_host16
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _HT_CAP_INFO_RX_STBC_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HT_CAP_INFO_RX_STBC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w10, w9, w8
Lloh3:
	adrp	x11, _HT_CAP_INFO_TX_STBC@GOTPAGE
Lloh4:
	ldr	x11, [x11, _HT_CAP_INFO_TX_STBC@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh6:
	adrp	x12, _HT_CAP_INFO_SMPS_MASK@GOTPAGE
Lloh7:
	ldr	x12, [x12, _HT_CAP_INFO_SMPS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	orr	w10, w10, w12
	and	w10, w10, w0
	tst	w9, w8
	mov	w12, #-1
	csinv	w13, w12, w11, ne
	and	w10, w10, w13
	tst	w11, w8
	csinv	w8, w12, w9, ne
	and	w0, w10, w8
	bl	_host_to_le16
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HT_CAP_INFO_RX_STBC_MASK,4,2   ; @HT_CAP_INFO_RX_STBC_MASK
	.comm	_HT_CAP_INFO_TX_STBC,4,2        ; @HT_CAP_INFO_TX_STBC
	.comm	_HT_CAP_INFO_SMPS_MASK,4,2      ; @HT_CAP_INFO_SMPS_MASK
.subsections_via_symbols
