	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_adhoc_join             ## -- Begin function mwifiex_adhoc_join
	.p2align	4, 0x90
_mwifiex_adhoc_join:                    ## @mwifiex_adhoc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	32(%rdi), %rcx
	movq	40(%rdi), %rdi
	movq	_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	24(%rbx), %rcx
	movq	40(%rbx), %rdi
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	40(%rbx), %rdi
	movl	(%r15), %esi
	movq	16(%r14), %rcx
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	40(%rbx), %rdi
	movl	(%r15), %esi
	movq	8(%r14), %rcx
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	leaq	24(%rbx), %rsi
	leaq	8(%r14), %rdi
	callq	_mwifiex_ssid_cmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.10:
	movq	40(%rbx), %rdi
	movl	(%r15), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	40(%rbx), %rax
	movl	4(%rax), %edi
	callq	_ISSUPP_11ACENABLED
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	cmpl	$0, 4(%r14)
	jne	LBB0_8
## %bb.5:
	cmpl	$0, (%r14)
	je	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	callq	_mwifiex_set_ba_params
LBB0_9:
	movq	16(%rbx), %rcx
	movq	40(%rbx), %rdi
	movl	(%r15), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	(%rbx), %rcx
	movq	40(%rbx), %rdi
	movl	(%r15), %esi
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_HostCmd_CMD_802_11_AD_HOC_JOIN@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
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mwifiex_send_cmd               ## TAILCALL
LBB0_6:
	movq	40(%rbx), %rax
	movq	_BAND_AAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_mwifiex_set_11ac_ba_params
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO,4,2                       ## @INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: adhoc join: curr_bss ssid =%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"info: adhoc join: curr_bss ssid_len =%u\n"

L_.str.2:                               ## @.str.2
	.asciz	"info: adhoc join: ssid =%s\n"

L_.str.3:                               ## @.str.3
	.asciz	"info: adhoc join: ssid_len =%u\n"

	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
L_.str.4:                               ## @.str.4
	.asciz	"info: ADHOC_J_CMD: new ad-hoc SSID\tis the same as current; not attempting to re-join\n"

	.comm	_BAND_AAC,4,2                   ## @BAND_AAC
L_.str.5:                               ## @.str.5
	.asciz	"info: curr_bss_params.channel = %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"info: curr_bss_params.band = %c\n"

	.comm	_HostCmd_CMD_802_11_AD_HOC_JOIN,4,2 ## @HostCmd_CMD_802_11_AD_HOC_JOIN
	.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_adhoc_join             ; -- Begin function mwifiex_adhoc_join
	.p2align	2
_mwifiex_adhoc_join:                    ; @mwifiex_adhoc_join
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _INFO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INFO@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	x0, [x0, #40]
	ldr	x8, [x20, #32]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	mov	x21, x20
	ldr	x8, [x21, #24]!
	ldr	x0, [x20, #40]
	ldr	w1, [x23]
	str	x8, [sp]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x0, [x20, #40]
	ldr	w1, [x23]
	ldr	x8, [x19, #16]
	str	x8, [sp]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_mwifiex_dbg
	mov	x22, x19
	ldr	x8, [x22, #8]!
	ldr	x0, [x20, #40]
	ldr	w1, [x23]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	bl	_mwifiex_ssid_cmp
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x20, #40]
	ldr	w1, [x23]
Lloh13:
	adrp	x2, l_.str.4@PAGE
Lloh14:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_mwifiex_dbg
	mov	w0, #-1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	ldr	x8, [x20, #40]
	ldr	w0, [x8, #4]
	bl	_ISSUPP_11ACENABLED
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_mwifiex_set_ba_params
LBB0_8:
	ldr	x0, [x20, #40]
	ldr	w1, [x23]
	ldr	x8, [x20, #16]
	str	x8, [sp]
Lloh15:
	adrp	x2, l_.str.5@PAGE
Lloh16:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x0, [x20, #40]
	ldr	w1, [x23]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh17:
	adrp	x2, l_.str.6@PAGE
Lloh18:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_mwifiex_dbg
Lloh19:
	adrp	x8, _HostCmd_CMD_802_11_AD_HOC_JOIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HostCmd_CMD_802_11_AD_HOC_JOIN@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _HostCmd_ACT_GEN_SET@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HostCmd_ACT_GEN_SET@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	mov	x4, x19
	mov	w5, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_mwifiex_send_cmd
LBB0_9:
	ldr	x8, [x20, #40]
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _BAND_AAC@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BAND_AAC@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.10:
	mov	x0, x20
	bl	_mwifiex_set_11ac_ba_params
	b	LBB0_8
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO,4,2                       ; @INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: adhoc join: curr_bss ssid =%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"info: adhoc join: curr_bss ssid_len =%u\n"

l_.str.2:                               ; @.str.2
	.asciz	"info: adhoc join: ssid =%s\n"

l_.str.3:                               ; @.str.3
	.asciz	"info: adhoc join: ssid_len =%u\n"

	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
l_.str.4:                               ; @.str.4
	.asciz	"info: ADHOC_J_CMD: new ad-hoc SSID\tis the same as current; not attempting to re-join\n"

	.comm	_BAND_AAC,4,2                   ; @BAND_AAC
l_.str.5:                               ; @.str.5
	.asciz	"info: curr_bss_params.channel = %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"info: curr_bss_params.band = %c\n"

	.comm	_HostCmd_CMD_802_11_AD_HOC_JOIN,4,2 ; @HostCmd_CMD_802_11_AD_HOC_JOIN
	.comm	_HostCmd_ACT_GEN_SET,4,2        ; @HostCmd_ACT_GEN_SET
.subsections_via_symbols
