	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_ret_802_11_ad_hoc      ## -- Begin function mwifiex_ret_802_11_ad_hoc
	.p2align	4, 0x90
_mwifiex_ret_802_11_ad_hoc:             ## @mwifiex_ret_802_11_ad_hoc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	(%rsi), %edi
	callq	_le16_to_cpu
	movq	32(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_HostCmd_CMD_802_11_AD_HOC_START@GOTPCREL(%rip), %r14
	xorl	%ecx, %ecx
	cmpq	(%r14), %rax
	sete	%cl
	shlq	$4, %rcx
	movq	8(%rcx,%r12), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.3:
	movq	16(%rbx), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_mwifiex_reset_connect_state
LBB0_5:
	addq	$8, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rcx
	movl	$-1, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_14
	jmp	LBB0_15
LBB0_1:
	movq	16(%rbx), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_12
LBB0_6:
	movl	$1, (%rbx)
	movl	(%r12), %edi
	callq	_le16_to_cpu
	movq	16(%rbx), %rdi
	movq	_INFO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r15), %ecx
	cmpq	(%r14), %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	8(%r15), %rdi
	movq	16(%r12), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_ADHOC_STARTED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	leaq	8(%rbx), %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_ADHOC_JOINED@GOTPCREL(%rip), %rax
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	16(%rbx), %rdi
	movl	(%r13), %esi
	movl	24(%rbx), %ecx
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	16(%rbx), %rdi
	movl	(%r13), %esi
	movl	8(%rbx), %ecx
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	4(%rbx), %edi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	4(%rbx), %edi
	callq	_netif_carrier_on
LBB0_11:
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	_mwifiex_wake_up_net_dev_queue
	movq	%rbx, %rdi
	callq	_mwifiex_save_curr_bcn
LBB0_12:
	movq	8(%r14), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	je	LBB0_15
LBB0_14:
	movl	%eax, (%r14)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ADHOC_RESP: failed, association terminated by host\n"

	.comm	_HostCmd_CMD_802_11_AD_HOC_START,8,3 ## @HostCmd_CMD_802_11_AD_HOC_START
L_.str.1:                               ## @.str.1
	.asciz	"ADHOC_RESP: failed\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.2:                               ## @.str.2
	.asciz	"info: ADHOC_S_RESP %s\n"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ADHOC_STARTED,4,2              ## @ADHOC_STARTED
L_.str.3:                               ## @.str.3
	.asciz	"info: ADHOC_J_RESP %s\n"

	.comm	_ADHOC_JOINED,4,2               ## @ADHOC_JOINED
L_.str.4:                               ## @.str.4
	.asciz	"info: ADHOC_RESP: channel = %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"info: ADHOC_RESP: BSSID = %pM\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_ret_802_11_ad_hoc      ; -- Begin function mwifiex_ret_802_11_ad_hoc
	.p2align	2
_mwifiex_ret_802_11_ad_hoc:             ; @mwifiex_ret_802_11_ad_hoc
	.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	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w0, [x1]
	bl	_le16_to_cpu
	ldr	x21, [x20, #32]
	cbz	x21, LBB0_5
; %bb.1:
Lloh0:
	adrp	x24, _HostCmd_CMD_802_11_AD_HOC_START@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HostCmd_CMD_802_11_AD_HOC_START@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w9, #8
	mov	w10, #24
	cmp	x0, x8
	csel	x8, x10, x9, eq
	ldr	x23, [x22, x8]
	cbz	x23, LBB0_6
; %bb.2:
	ldr	x0, [x20, #16]
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x23
	mov	w2, #1
	bl	_mwifiex_reset_connect_state
LBB0_4:
	add	x0, x20, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	mov	w8, #-1
	mov	w0, #-1
	cbnz	x9, LBB0_13
	b	LBB0_14
LBB0_5:
	ldr	x0, [x20, #16]
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	b	LBB0_12
LBB0_6:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x22]
	bl	_le16_to_cpu
	mov	x8, x0
	ldr	x10, [x24]
	ldr	x0, [x20, #16]
Lloh12:
	adrp	x23, _INFO@GOTPAGE
Lloh13:
	ldr	x23, [x23, _INFO@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w9, [x21]
	cmp	x8, x10
	b.ne	LBB0_8
; %bb.7:
	str	x9, [sp]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x0, [x21, #8]
	ldr	x1, [x22, #16]
Lloh16:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_memcpy
Lloh19:
	adrp	x8, _ADHOC_STARTED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ADHOC_STARTED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	str	x9, [sp]
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_mwifiex_dbg
	add	x0, x20, #8
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
Lloh23:
	adrp	x8, _ADHOC_JOINED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ADHOC_JOINED@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	ldr	x0, [x20, #16]
	ldr	w1, [x23]
	ldr	w8, [x20, #24]
	str	x8, [sp]
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x0, [x20, #16]
	ldr	w1, [x23]
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh27:
	adrp	x2, l_.str.5@PAGE
Lloh28:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_mwifiex_dbg
	ldr	w0, [x20, #4]
	bl	_netif_carrier_ok
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	w0, [x20, #4]
	bl	_netif_carrier_on
LBB0_11:
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_mwifiex_wake_up_net_dev_queue
	mov	x0, x20
	bl	_mwifiex_save_curr_bcn
LBB0_12:
	mov	w8, #0
	mov	w0, #0
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_14
LBB0_13:
	str	w8, [x19]
	mov	x0, x8
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ADHOC_RESP: failed, association terminated by host\n"

	.comm	_HostCmd_CMD_802_11_AD_HOC_START,8,3 ; @HostCmd_CMD_802_11_AD_HOC_START
l_.str.1:                               ; @.str.1
	.asciz	"ADHOC_RESP: failed\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.2:                               ; @.str.2
	.asciz	"info: ADHOC_S_RESP %s\n"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ADHOC_STARTED,4,2              ; @ADHOC_STARTED
l_.str.3:                               ; @.str.3
	.asciz	"info: ADHOC_J_RESP %s\n"

	.comm	_ADHOC_JOINED,4,2               ; @ADHOC_JOINED
l_.str.4:                               ; @.str.4
	.asciz	"info: ADHOC_RESP: channel = %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"info: ADHOC_RESP: BSSID = %pM\n"

.subsections_via_symbols
