	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_tlv_op_gen_vdev_start
_ath10k_wmi_tlv_op_gen_vdev_start:      ## @ath10k_wmi_tlv_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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 48(%rsi)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, 32(%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:
	movl	$148, %esi
	movq	%r14, %rdi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	xorl	%r12d, %r12d
	cmpq	$0, 48(%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, 40(%rbx)
	je	LBB0_13
## %bb.12:
	movq	_WMI_VDEV_START_PMF_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_13:
	orl	%edx, %r12d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	_WMI_TLV_TAG_STRUCT_VDEV_START_REQUEST_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 8(%r13)
	movl	$72, %edi
	callq	___cpu_to_le16
	movq	%rax, (%r13)
	movq	16(%r13), %r15
	movl	4(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 64(%r15)
	movl	8(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 56(%r15)
	movl	12(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 48(%r15)
	movl	%r12d, %edi
	callq	___cpu_to_le32
	movq	%rax, 40(%r15)
	movl	16(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 32(%r15)
	movl	20(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 24(%r15)
	movl	24(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r15)
	cmpl	$0, 32(%rbx)
	je	LBB0_15
## %bb.14:
	movl	(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r15)
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movl	32(%rbx), %esi
	callq	_memcpy
LBB0_15:
	movq	_WMI_TLV_TAG_STRUCT_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 104(%r13)
	movl	$4, %edi
	callq	___cpu_to_le16
	movq	%rax, 96(%r13)
	movq	112(%r13), %rdi
	addq	$28, %rbx
	movq	%rbx, %rsi
	callq	_ath10k_wmi_put_wmi_channel
	movq	_WMI_TLV_TAG_ARRAY_STRUCT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 132(%r13)
	movq	$0, 124(%r13)
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath10k_dbg
	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
	.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	_WMI_TLV_TAG_STRUCT_VDEV_START_REQUEST_CMD,4,2 ## @WMI_TLV_TAG_STRUCT_VDEV_START_REQUEST_CMD
	.comm	_WMI_TLV_TAG_STRUCT_CHANNEL,4,2 ## @WMI_TLV_TAG_STRUCT_CHANNEL
	.comm	_WMI_TLV_TAG_ARRAY_STRUCT,4,2   ## @WMI_TLV_TAG_ARRAY_STRUCT
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi tlv vdev start\n"

	.no_dead_strip	_ath10k_wmi_tlv_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_tlv_op_gen_vdev_start
_ath10k_wmi_tlv_op_gen_vdev_start:      ; @ath10k_wmi_tlv_op_gen_vdev_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #48]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #32]
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_6:
	mov	x0, x19
	mov	w1, #148
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_10
; %bb.7:
	mov	x21, x0
Lloh2:
	adrp	x8, _WMI_VDEV_START_HIDDEN_SSID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WMI_VDEV_START_HIDDEN_SSID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	x10, x9, [x20, #40]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh5:
	adrp	x9, _WMI_VDEV_START_PMF_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WMI_VDEV_START_PMF_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w22, w9, w8
	ldr	x23, [x0]
Lloh8:
	adrp	x8, _WMI_TLV_TAG_STRUCT_VDEV_START_REQUEST_CMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_VDEV_START_REQUEST_CMD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x23, #8]
	mov	w0, #72
	bl	___cpu_to_le16
	str	x0, [x23]
	ldr	x24, [x23, #16]
	ldr	w0, [x20, #4]
	bl	___cpu_to_le32
	str	x0, [x24, #64]
	ldr	w0, [x20, #8]
	bl	___cpu_to_le32
	str	x0, [x24, #56]
	ldr	w0, [x20, #12]
	bl	___cpu_to_le32
	str	x0, [x24, #48]
	mov	x0, x22
	bl	___cpu_to_le32
	str	x0, [x24, #40]
	ldr	w0, [x20, #16]
	bl	___cpu_to_le32
	str	x0, [x24, #32]
	ldr	w0, [x20, #20]
	bl	___cpu_to_le32
	str	x0, [x24, #24]
	ldr	w0, [x20, #24]
	bl	___cpu_to_le32
	str	x0, [x24, #16]
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w0, [x20]
	bl	___cpu_to_le32
	str	x0, [x24, #8]
	ldr	w0, [x24]
	ldr	w1, [x20, #32]
	ldr	w2, [x20]
	bl	_memcpy
LBB0_9:
Lloh11:
	adrp	x8, _WMI_TLV_TAG_STRUCT_CHANNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_CHANNEL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x23, #104]
	mov	w0, #4
	bl	___cpu_to_le16
	str	x0, [x23, #96]
	ldr	x0, [x23, #112]
	add	x1, x20, #28
	bl	_ath10k_wmi_put_wmi_channel
Lloh14:
	adrp	x8, _WMI_TLV_TAG_ARRAY_STRUCT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WMI_TLV_TAG_ARRAY_STRUCT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	stur	x0, [x23, #132]
	stur	xzr, [x23, #124]
Lloh17:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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	_WMI_TLV_TAG_STRUCT_VDEV_START_REQUEST_CMD,4,2 ; @WMI_TLV_TAG_STRUCT_VDEV_START_REQUEST_CMD
	.comm	_WMI_TLV_TAG_STRUCT_CHANNEL,4,2 ; @WMI_TLV_TAG_STRUCT_CHANNEL
	.comm	_WMI_TLV_TAG_ARRAY_STRUCT,4,2   ; @WMI_TLV_TAG_ARRAY_STRUCT
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi tlv vdev start\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_vdev_start
.subsections_via_symbols
