	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_cmd_role_start_ibss     ## -- Begin function wl12xx_cmd_role_start_ibss
	.p2align	4, 0x90
_wl12xx_cmd_role_start_ibss:            ## @wl12xx_cmd_role_start_ibss
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_wl12xx_wlvif_to_vif
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r15), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1271_debug
	movl	24(%r15), %eax
	movl	%eax, 72(%rbx)
	movq	(%r15), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_WLCORE_BAND_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
LBB0_4:
	movl	40(%r15), %eax
	movl	%eax, 64(%rbx)
	movl	20(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%rbx)
	movl	36(%r15), %edi
	callq	_cpu_to_le16
	movl	%eax, 52(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 48(%rbx)
	movq	_WL12XX_SSID_TYPE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	28(%r15), %edx
	movl	%edx, 40(%rbx)
	movl	36(%rbx), %edi
	movl	32(%r15), %esi
	callq	_memcpy
	movl	32(%rbx), %edi
	movl	(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	16(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	leaq	8(%r15), %r13
	movq	8(%r15), %rax
	movq	_WL12XX_INVALID_LINK_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_wl12xx_allocate_link
	movq	%r14, %rcx
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	(%r13), %rax
	movq	%rcx, %r14
LBB0_7:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%rbx)
	movl	16(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movq	_DEBUG_CMD@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	24(%r15), %edx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movl	16(%r15), %eax
	movl	20(%r15), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1271_debug
	movl	(%r13), %edi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1271_debug
	movq	_CMD_ROLE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$80, %ecx
	xorl	%r8d, %r8d
	callq	_wl1271_cmd_send
	movq	%r14, %r12
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	callq	_wl1271_error
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_wl12xx_free_link
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd role start ibss %d"

	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_WLCORE_BAND_5GHZ,4,2           ## @WLCORE_BAND_5GHZ
	.comm	_WL12XX_SSID_TYPE_ANY,4,2       ## @WL12XX_SSID_TYPE_ANY
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WL12XX_INVALID_LINK_ID,8,3     ## @WL12XX_INVALID_LINK_ID
L_.str.1:                               ## @.str.1
	.asciz	"role start: roleid=%d, hlid=%d, session=%d basic_rate_set: 0x%x, remote_rates: 0x%x"

L_.str.2:                               ## @.str.2
	.asciz	"vif->bss_conf.bssid = %pM"

	.comm	_CMD_ROLE_START,4,2             ## @CMD_ROLE_START
L_.str.3:                               ## @.str.3
	.asciz	"failed to initiate cmd role enable"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_cmd_role_start_ibss     ; -- Begin function wl12xx_cmd_role_start_ibss
	.p2align	2
_wl12xx_cmd_role_start_ibss:            ; @wl12xx_cmd_role_start_ibss
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_wl12xx_wlvif_to_vif
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x25, _DEBUG_CMD@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DEBUG_CMD@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w2, [x19, #24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	ldr	w8, [x19, #24]
	str	w8, [x21, #72]
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _NL80211_BAND_5GHZ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _WLCORE_BAND_5GHZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WLCORE_BAND_5GHZ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #68]
LBB0_3:
	ldr	w8, [x19, #40]
	str	w8, [x21, #64]
	ldr	w0, [x19, #20]
	bl	_cpu_to_le32
	str	x0, [x21, #56]
	ldr	w0, [x19, #36]
	bl	_cpu_to_le16
	ldr	w8, [x22, #4]
	stp	w8, w0, [x21, #48]
Lloh13:
	adrp	x8, _WL12XX_SSID_TYPE_ANY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WL12XX_SSID_TYPE_ANY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldp	w2, w1, [x19, #28]
	stp	w2, w8, [x21, #40]
	ldr	w0, [x21, #36]
	bl	_memcpy
	ldr	w0, [x21, #32]
	ldr	w1, [x22]
Lloh16:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w0, [x19, #16]
	bl	_cpu_to_le32
	str	x0, [x21, #8]
	mov	x23, x19
	ldr	x8, [x23, #8]!
Lloh19:
	adrp	x9, _WL12XX_INVALID_LINK_ID@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WL12XX_INVALID_LINK_ID@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_wl12xx_allocate_link
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x23]
LBB0_6:
	str	x8, [x21, #16]
	ldr	w0, [x19, #16]
	bl	_cpu_to_le32
	str	x0, [x21, #24]
	ldr	w0, [x25]
	ldp	w10, w2, [x19, #20]
	ldp	w9, w8, [x21]
	ldr	w11, [x19, #16]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1271_debug
	ldr	w0, [x25]
	ldr	w2, [x22]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wl1271_debug
Lloh26:
	adrp	x8, _CMD_ROLE_START@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CMD_ROLE_START@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	mov	w3, #80
	mov	w4, #0
	bl	_wl1271_cmd_send
	mov	x24, x0
	tbz	w0, #31, LBB0_8
; %bb.7:
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_wl1271_error
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_wl12xx_free_link
LBB0_8:
	mov	x0, x21
	bl	_kfree
	b	LBB0_10
LBB0_9:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd role start ibss %d"

	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_WLCORE_BAND_5GHZ,4,2           ; @WLCORE_BAND_5GHZ
	.comm	_WL12XX_SSID_TYPE_ANY,4,2       ; @WL12XX_SSID_TYPE_ANY
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WL12XX_INVALID_LINK_ID,8,3     ; @WL12XX_INVALID_LINK_ID
l_.str.1:                               ; @.str.1
	.asciz	"role start: roleid=%d, hlid=%d, session=%d basic_rate_set: 0x%x, remote_rates: 0x%x"

l_.str.2:                               ; @.str.2
	.asciz	"vif->bss_conf.bssid = %pM"

	.comm	_CMD_ROLE_START,4,2             ; @CMD_ROLE_START
l_.str.3:                               ; @.str.3
	.asciz	"failed to initiate cmd role enable"

.subsections_via_symbols
