	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_ht_operation       ## -- Begin function hostapd_eid_ht_operation
	.p2align	4, 0x90
_hostapd_eid_ht_operation:              ## @hostapd_eid_ht_operation
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.2:
	movq	_WLAN_EID_HT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	leaq	8(%r15), %r14
	movl	$12, 4(%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_os_memset
	movq	(%rbx), %rax
	movl	4(%rax), %eax
	movl	%eax, 16(%r15)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_host_to_le16
	movl	%eax, 12(%r15)
	movq	(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.5:
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	_HT_INFO_HT_PARAM_STA_CHNL_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
LBB0_7:
	addq	$56, %r15
LBB0_8:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_HT_OPERATION,4,2      ## @WLAN_EID_HT_OPERATION
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE
	.comm	_HT_INFO_HT_PARAM_STA_CHNL_WIDTH,4,2 ## @HT_INFO_HT_PARAM_STA_CHNL_WIDTH
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_eid_ht_operation       ; -- Begin function hostapd_eid_ht_operation
	.p2align	2
_hostapd_eid_ht_operation:              ; @hostapd_eid_ht_operation
	.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	x8, [x0]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbnz	x8, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _WLAN_EID_HT_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_HT_OPERATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x20, x19, #8
	mov	w9, #12
	stp	w8, w9, [x19]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #12
	bl	_os_memset
	ldp	x8, x9, [x21]
	ldr	w8, [x8, #4]
	str	w8, [x19, #16]
	ldr	w0, [x9]
	bl	_host_to_le16
	str	w0, [x19, #12]
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.3:
	cmn	w8, #1
	b.ne	LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPAGEOFF]
LBB0_6:
Lloh7:
	adrp	x9, _HT_INFO_HT_PARAM_STA_CHNL_WIDTH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_STA_CHNL_WIDTH@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_7:
	add	x19, x19, #56
LBB0_8:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_HT_OPERATION,4,2      ; @WLAN_EID_HT_OPERATION
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE
	.comm	_HT_INFO_HT_PARAM_STA_CHNL_WIDTH,4,2 ; @HT_INFO_HT_PARAM_STA_CHNL_WIDTH
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW
.subsections_via_symbols
