	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl12xx_cmd_role_start_dev
_wl12xx_cmd_role_start_dev:             ## @wl12xx_cmd_role_start_dev
	.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
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1271_debug
	movl	8(%r14), %edx
	movl	%edx, 24(%r13)
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_WLCORE_BAND_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
LBB0_4:
	movl	%r12d, (%r13)
	movq	(%r14), %rcx
	movq	_WL12XX_INVALID_LINK_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_wl12xx_allocate_link
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	(%r14), %rcx
	movl	24(%r13), %edx
LBB0_7:
	movq	%rcx, 8(%r13)
	movq	(%r15), %rax
	movl	(%rax,%rcx,4), %r8d
	movl	%r8d, 16(%r13)
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1271_debug
	movq	_CMD_ROLE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	$32, %ecx
	xorl	%r8d, %r8d
	callq	_wl1271_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	_wl1271_error
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	callq	_wl12xx_free_link
LBB0_9:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %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 dev %d"

	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_WLCORE_BAND_5GHZ,4,2           ## @WLCORE_BAND_5GHZ
	.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"

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

	.no_dead_strip	_wl12xx_cmd_role_start_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl12xx_cmd_role_start_dev
_wl12xx_cmd_role_start_dev:             ; @wl12xx_cmd_role_start_dev
	.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, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x24, _DEBUG_CMD@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DEBUG_CMD@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w2, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	ldr	w2, [x19, #8]
	str	w2, [x20, #24]
Lloh7:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w23
	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, [x20, #28]
LBB0_3:
	str	w22, [x20]
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _WL12XX_INVALID_LINK_ID@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WL12XX_INVALID_LINK_ID@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x19
	bl	_wl12xx_allocate_link
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x19]
	ldr	w2, [x20, #24]
LBB0_6:
	str	x8, [x20, #8]
	ldr	x9, [x21]
	ldr	w9, [x9, x8, lsl #2]
	str	w9, [x20, #16]
	ldr	w0, [x24]
	stp	x8, x9, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1271_debug
Lloh18:
	adrp	x8, _CMD_ROLE_START@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CMD_ROLE_START@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	mov	w3, #32
	mov	w4, #0
	bl	_wl1271_cmd_send
	mov	x22, x0
	tbz	w0, #31, LBB0_8
; %bb.7:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_wl1271_error
	mov	x0, x21
	mov	x1, x19
	mov	x2, x19
	bl	_wl12xx_free_link
LBB0_8:
	mov	x0, x20
	bl	_kfree
	b	LBB0_10
LBB0_9:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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 dev %d"

	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_WLCORE_BAND_5GHZ,4,2           ; @WLCORE_BAND_5GHZ
	.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"

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

	.no_dead_strip	_wl12xx_cmd_role_start_dev
.subsections_via_symbols
