	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_11h_process_infra_join
_mwifiex_11h_process_infra_join:        ## @mwifiex_11h_process_infra_join
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r12
	cmpq	$0, (%rsi)
	je	LBB0_5
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	8(%rdx), %rdi
	callq	_mwifiex_band_to_radio_type
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r15
	movq	(%r12), %rbx
	movq	_WLAN_EID_PWR_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movl	$2, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	(%r12), %rbx
	leaq	256(%rbx), %rax
	movq	%rax, (%r12)
	movq	_WLAN_EID_PWR_CONSTRAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 272(%rbx)
	movl	$2, %edi
	callq	_cpu_to_le16
	movq	%rax, 264(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 260(%rbx)
	movl	(%r14), %eax
	movl	%eax, 256(%rbx)
	movq	(%r12), %rbx
	leaq	192(%rbx), %rax
	movq	%rax, (%r12)
	movq	_TLV_TYPE_PASSTHROUGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 200(%rbx)
	movl	(%r15), %eax
	leal	(%rax,%rax), %edi
	addl	$2, %edi
	callq	_cpu_to_le16
	movq	%rax, 192(%rbx)
	movq	(%r12), %rax
	movq	_WLAN_EID_SUPPORTED_CHANNELS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rcx, 128(%rax)
	movslq	(%r15), %rcx
	leaq	(%rcx,%rcx), %rdx
	leaq	144(%rax), %rsi
	movq	%rsi, (%r12)
	movq	%rdx, 136(%rax)
	testq	%rcx, %rcx
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_ieee80211_frequency_to_channel
	cltq
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	leaq	16(%rcx), %rax
	movq	%rax, (%r12)
	movq	$1, 8(%rcx)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_PWR_CAPABILITY,4,2    ## @WLAN_EID_PWR_CAPABILITY
	.comm	_WLAN_EID_PWR_CONSTRAINT,4,2    ## @WLAN_EID_PWR_CONSTRAINT
	.comm	_TLV_TYPE_PASSTHROUGH,4,2       ## @TLV_TYPE_PASSTHROUGH
	.comm	_WLAN_EID_SUPPORTED_CHANNELS,4,2 ## @WLAN_EID_SUPPORTED_CHANNELS
	.no_dead_strip	_mwifiex_11h_process_infra_join
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_11h_process_infra_join
_mwifiex_11h_process_infra_join:        ; @mwifiex_11h_process_infra_join
	.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
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x20, x2
	mov	x21, x0
	ldr	x0, [x2, #8]
	bl	_mwifiex_band_to_radio_type
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x21, [x8, x0, lsl #3]
	ldr	x22, [x19]
Lloh0:
	adrp	x8, _WLAN_EID_PWR_CAPABILITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_PWR_CAPABILITY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22, #24]
	mov	w0, #2
	bl	_cpu_to_le16
	stp	xzr, x0, [x22, #8]
	str	xzr, [x22]
	ldr	x22, [x19]
	add	x8, x22, #256
	str	x8, [x19]
Lloh3:
	adrp	x8, _WLAN_EID_PWR_CONSTRAINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_PWR_CONSTRAINT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22, #272]
	mov	w0, #2
	bl	_cpu_to_le16
	str	x0, [x22, #264]
	ldr	d0, [x20]
	str	d0, [x22, #256]
	ldr	x20, [x19]
	add	x8, x20, #192
	str	x8, [x19]
Lloh6:
	adrp	x8, _TLV_TYPE_PASSTHROUGH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TLV_TYPE_PASSTHROUGH@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x20, #200]
	ldr	w8, [x21]
	lsl	w8, w8, #1
	add	w0, w8, #2
	bl	_cpu_to_le16
	str	x0, [x20, #192]
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _WLAN_EID_SUPPORTED_CHANNELS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WLAN_EID_SUPPORTED_CHANNELS@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	ldrsw	x10, [x21]
	lsl	x11, x10, #1
	add	x12, x8, #144
	str	x12, [x19]
	stp	x9, x11, [x8, #128]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
	mov	w22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_ieee80211_frequency_to_channel
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x19]
	add	x10, x9, #16
	str	x10, [x19]
	stp	x8, x22, [x9]
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_PWR_CAPABILITY,4,2    ; @WLAN_EID_PWR_CAPABILITY
	.comm	_WLAN_EID_PWR_CONSTRAINT,4,2    ; @WLAN_EID_PWR_CONSTRAINT
	.comm	_TLV_TYPE_PASSTHROUGH,4,2       ; @TLV_TYPE_PASSTHROUGH
	.comm	_WLAN_EID_SUPPORTED_CHANNELS,4,2 ; @WLAN_EID_SUPPORTED_CHANNELS
	.no_dead_strip	_mwifiex_11h_process_infra_join
.subsections_via_symbols
