	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_op_gen_vdev_start
_ath10k_wmi_op_gen_vdev_start:          ## @ath10k_wmi_op_gen_vdev_start
	.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	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 56(%rsi)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, 40(%rbx)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:
	xorl	%edi, %edi
	cmpl	$5, (%rbx)
	setae	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_7:
	testl	%r15d, %r15d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r12
	cmoveq	%rax, %r12
	movq	%r14, %rdi
	movl	$80, %esi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	xorl	%r13d, %r13d
	cmpq	$0, 56(%rbx)
	movl	$0, %edx
	je	LBB0_11
## %bb.10:
	movq	_WMI_VDEV_START_HIDDEN_SSID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_11:
	cmpq	$0, 48(%rbx)
	je	LBB0_13
## %bb.12:
	movq	_WMI_VDEV_START_PMF_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_13:
	orl	%edx, %r13d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movl	4(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 72(%r15)
	movl	8(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 64(%r15)
	movl	12(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 56(%r15)
	movl	16(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 48(%r15)
	movl	%r13d, %edi
	callq	___cpu_to_le32
	movq	%rax, 40(%r15)
	movl	20(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 32(%r15)
	movl	24(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 24(%r15)
	cmpl	$0, 40(%rbx)
	je	LBB0_15
## %bb.14:
	movl	(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r15)
	movl	8(%r15), %edi
	movl	(%rbx), %edx
	movl	40(%rbx), %esi
	callq	_memcpy
LBB0_15:
	leaq	28(%rbx), %rsi
	movq	%r15, %rdi
	callq	_ath10k_wmi_put_wmi_channel
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%rbx), %r10d
	movl	32(%rbx), %r11d
	movl	(%r15), %eax
	movl	4(%rbx), %r8d
	movl	28(%rbx), %ebx
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	movl	%r13d, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_ath10k_dbg
	addq	$32, %rsp
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"restart"

L_.str.1:                               ## @.str.1
	.asciz	"start"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_VDEV_START_HIDDEN_SSID,4,2 ## @WMI_VDEV_START_HIDDEN_SSID
	.comm	_WMI_VDEV_START_PMF_ENABLED,4,2 ## @WMI_VDEV_START_PMF_ENABLED
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
L_.str.2:                               ## @.str.2
	.asciz	"wmi vdev %s id 0x%x flags: 0x%0X, freq %d, mode %d, ch_flags: 0x%0X, max_power: %d\n"

	.no_dead_strip	_ath10k_wmi_op_gen_vdev_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_op_gen_vdev_start
_ath10k_wmi_op_gen_vdev_start:          ; @ath10k_wmi_op_gen_vdev_start
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #56]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #40]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_4
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	bl	_WARN_ON
	cbnz	x0, LBB0_4
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #4
	cset	w0, hi
	bl	_WARN_ON
	cbz	x0, LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	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	_ERR_PTR
LBB0_6:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w21, #0
	csel	x21, x9, x8, eq
	mov	x0, x19
	mov	w1, #80
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_10
; %bb.7:
	mov	x22, x0
Lloh6:
	adrp	x8, _WMI_VDEV_START_HIDDEN_SSID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_VDEV_START_HIDDEN_SSID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	x10, x9, [x20, #48]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh9:
	adrp	x9, _WMI_VDEV_START_PMF_ENABLED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WMI_VDEV_START_PMF_ENABLED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w23, w9, w8
	ldr	x24, [x0]
	ldr	w0, [x20, #4]
	bl	___cpu_to_le32
	str	x0, [x24, #72]
	ldr	w0, [x20, #8]
	bl	___cpu_to_le32
	str	x0, [x24, #64]
	ldr	w0, [x20, #12]
	bl	___cpu_to_le32
	str	x0, [x24, #56]
	ldr	w0, [x20, #16]
	bl	___cpu_to_le32
	str	x0, [x24, #48]
	mov	x0, x23
	bl	___cpu_to_le32
	str	x0, [x24, #40]
	ldr	w0, [x20, #20]
	bl	___cpu_to_le32
	str	x0, [x24, #32]
	ldr	w0, [x20, #24]
	bl	___cpu_to_le32
	str	x0, [x24, #24]
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w0, [x20]
	bl	___cpu_to_le32
	str	x0, [x24, #16]
	ldr	w0, [x24, #8]
	ldr	w1, [x20, #40]
	ldr	w2, [x20]
	bl	_memcpy
LBB0_9:
	add	x1, x20, #28
	mov	x0, x24
	bl	_ath10k_wmi_put_wmi_channel
Lloh12:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w4, [x20, #4]
	ldp	w7, w6, [x20, #32]
	ldr	w8, [x24]
	ldr	w9, [x20, #28]
	stp	w8, w9, [sp]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	mov	x5, x23
	bl	_ath10k_dbg
	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
LBB0_10:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"restart"

l_.str.1:                               ; @.str.1
	.asciz	"start"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_VDEV_START_HIDDEN_SSID,4,2 ; @WMI_VDEV_START_HIDDEN_SSID
	.comm	_WMI_VDEV_START_PMF_ENABLED,4,2 ; @WMI_VDEV_START_PMF_ENABLED
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
l_.str.2:                               ; @.str.2
	.asciz	"wmi vdev %s id 0x%x flags: 0x%0X, freq %d, mode %d, ch_flags: 0x%0X, max_power: %d\n"

	.no_dead_strip	_ath10k_wmi_op_gen_vdev_start
.subsections_via_symbols
