	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_associate              ## -- Begin function mwifiex_associate
	.p2align	4, 0x90
_mwifiex_associate:                     ## @mwifiex_associate
	.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, %r14
	movq	%rdi, %rbx
	callq	_GET_BSS_ROLE
	movq	_MWIFIEX_BSS_ROLE_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	8(%rbx), %rax
	movl	4(%rax), %edi
	callq	_ISSUPP_11ACENABLED
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpl	$0, 12(%r14)
	jne	LBB0_7
## %bb.4:
	cmpl	$0, 8(%r14)
	je	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	callq	_mwifiex_set_ba_params
LBB0_8:
	movq	$0, (%rbx)
	movq	_HostCmd_CMD_802_11_ASSOCIATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HostCmd_ACT_GEN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movq	%r14, %r8
	movl	$1, %r9d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mwifiex_send_cmd               ## TAILCALL
LBB0_9:
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	8(%rbx), %rax
	movq	_BAND_AAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_mwifiex_set_11ac_ba_params
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ## @MWIFIEX_BSS_ROLE_STA
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_BAND_AAC,4,2                   ## @BAND_AAC
	.comm	_HostCmd_CMD_802_11_ASSOCIATE,4,2 ## @HostCmd_CMD_802_11_ASSOCIATE
	.comm	_HostCmd_ACT_GEN_SET,4,2        ## @HostCmd_ACT_GEN_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_associate              ; -- Begin function mwifiex_associate
	.p2align	2
_mwifiex_associate:                     ; @mwifiex_associate
	.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
	mov	x20, x0
	bl	_GET_BSS_ROLE
Lloh0:
	adrp	x8, _MWIFIEX_BSS_ROLE_STA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_BSS_ROLE_STA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	bl	_ISSUPP_11ACENABLED
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_mwifiex_set_ba_params
LBB0_6:
	str	xzr, [x20]
Lloh6:
	adrp	x8, _HostCmd_CMD_802_11_ASSOCIATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HostCmd_CMD_802_11_ASSOCIATE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	mov	x4, x19
	mov	w5, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mwifiex_send_cmd
LBB0_7:
	mov	w0, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BAND_AAC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BAND_AAC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.9:
	mov	x0, x20
	bl	_mwifiex_set_11ac_ba_params
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ; @MWIFIEX_BSS_ROLE_STA
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_BAND_AAC,4,2                   ; @BAND_AAC
	.comm	_HostCmd_CMD_802_11_ASSOCIATE,4,2 ; @HostCmd_CMD_802_11_ASSOCIATE
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
.subsections_via_symbols
