	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_pri_sec_chan               ## -- Begin function get_pri_sec_chan
	.p2align	4, 0x90
_get_pri_sec_chan:                      ## @get_pri_sec_chan
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	$0, (%rdx)
	movl	$0, (%rsi)
	movl	(%rdi), %esi
	addq	$4, %rdi
	leaq	-24(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_ieee802_11_parse_elems
	movq	-24(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movl	(%rcx), %eax
	movl	%eax, (%rbx)
	movl	4(%rcx), %ecx
	movq	_HT_INFO_HT_PARAM_STA_CHNL_WIDTH@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.2:
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	cmpl	(%rsi), %ecx
	je	LBB0_4
## %bb.3:
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPCREL(%rip), %rsi
	movl	$-4, %edx
	cmpl	(%rsi), %ecx
	jne	LBB0_5
LBB0_4:
	addl	%edx, %eax
	movl	%eax, (%r14)
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HT_INFO_HT_PARAM_STA_CHNL_WIDTH,4,2 ## @HT_INFO_HT_PARAM_STA_CHNL_WIDTH
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE
	.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	_get_pri_sec_chan               ; -- Begin function get_pri_sec_chan
	.p2align	2
_get_pri_sec_chan:                      ; @get_pri_sec_chan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	str	wzr, [x2]
	str	wzr, [x1]
	ldr	w1, [x0], #4
	add	x2, sp, #8
	mov	w3, #0
	bl	_ieee802_11_parse_elems
	ldr	x9, [sp, #8]
	cbz	x9, LBB0_7
; %bb.1:
	ldr	w8, [x9]
	str	w8, [x20]
	ldr	w9, [x9, #4]
Lloh0:
	adrp	x10, _HT_INFO_HT_PARAM_STA_CHNL_WIDTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HT_INFO_HT_PARAM_STA_CHNL_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.2:
Lloh3:
	adrp	x10, _HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh6:
	adrp	x10, _HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.3:
	mov	w9, #4
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x10, _HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPAGE
Lloh10:
	ldr	x10, [x10, _HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.5:
	mov	w9, #-4
LBB0_6:
	add	w8, w8, w9
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HT_INFO_HT_PARAM_STA_CHNL_WIDTH,4,2 ; @HT_INFO_HT_PARAM_STA_CHNL_WIDTH
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW
.subsections_via_symbols
