	.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_dbglog_cfg
_ath10k_wmi_tlv_op_gen_dbglog_cfg:      ## @ath10k_wmi_tlv_op_gen_dbglog_cfg
	.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, %rax
	movq	%rdi, %r15
	testq	%rsi, %rsi
	movq	_WMI_TLV_DBGLOG_ALL_MODULES@GOTPCREL(%rip), %rcx
	cmoveq	(%rcx), %rax
	movq	_WMI_TLV_DBGLOG_LOG_LEVEL_VERBOSE@GOTPCREL(%rip), %rcx
	cmoveq	_WMI_TLV_DBGLOG_LOG_LEVEL_WARN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_WMI_TLV_DBGLOG_LOG_LEVEL_VALUE
	movl	%eax, %r14d
	movl	$64, %esi
	movq	%r15, %rdi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %rbx
	movq	_WMI_TLV_TAG_STRUCT_DEBUG_LOG_CONFIG_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	___cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	$16, %edi
	callq	___cpu_to_le16
	movq	%rax, (%rbx)
	movq	16(%rbx), %r13
	movq	_WMI_TLV_DBGLOG_PARAM_LOG_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r13)
	movl	%r14d, %edi
	callq	___cpu_to_le32
	movq	%rax, (%r13)
	movq	_WMI_TLV_TAG_ARRAY_UINT32@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	___cpu_to_le16
	movq	%rax, 48(%rbx)
	xorl	%edi, %edi
	callq	___cpu_to_le16
	movq	%rax, 40(%rbx)
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_ath10k_dbg
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	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
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_TLV_DBGLOG_LOG_LEVEL_VERBOSE,4,2 ## @WMI_TLV_DBGLOG_LOG_LEVEL_VERBOSE
	.comm	_WMI_TLV_DBGLOG_ALL_MODULES,8,3 ## @WMI_TLV_DBGLOG_ALL_MODULES
	.comm	_WMI_TLV_DBGLOG_LOG_LEVEL_WARN,4,2 ## @WMI_TLV_DBGLOG_LOG_LEVEL_WARN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_DEBUG_LOG_CONFIG_CMD,8,3 ## @WMI_TLV_TAG_STRUCT_DEBUG_LOG_CONFIG_CMD
	.comm	_WMI_TLV_DBGLOG_PARAM_LOG_LEVEL,4,2 ## @WMI_TLV_DBGLOG_PARAM_LOG_LEVEL
	.comm	_WMI_TLV_TAG_ARRAY_UINT32,8,3   ## @WMI_TLV_TAG_ARRAY_UINT32
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi tlv dbglog value 0x%08x\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_dbglog_cfg
.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_dbglog_cfg
_ath10k_wmi_tlv_op_gen_dbglog_cfg:      ; @ath10k_wmi_tlv_op_gen_dbglog_cfg
	.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	x19, x0
Lloh0:
	adrp	x8, _WMI_TLV_DBGLOG_ALL_MODULES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_TLV_DBGLOG_ALL_MODULES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, #0
	csel	x0, x8, x1, eq
Lloh3:
	adrp	x8, _WMI_TLV_DBGLOG_LOG_LEVEL_WARN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_TLV_DBGLOG_LOG_LEVEL_WARN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _WMI_TLV_DBGLOG_LOG_LEVEL_VERBOSE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WMI_TLV_DBGLOG_LOG_LEVEL_VERBOSE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	bl	_WMI_TLV_DBGLOG_LOG_LEVEL_VALUE
	mov	x20, x0
	mov	x0, x19
	mov	w1, #64
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x22, [x0]
Lloh7:
	adrp	x8, _WMI_TLV_TAG_STRUCT_DEBUG_LOG_CONFIG_CMD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_DEBUG_LOG_CONFIG_CMD@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	bl	___cpu_to_le16
	str	x0, [x22, #8]
	mov	w0, #16
	bl	___cpu_to_le16
	str	x0, [x22]
	ldr	x23, [x22, #16]
Lloh10:
	adrp	x8, _WMI_TLV_DBGLOG_PARAM_LOG_LEVEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WMI_TLV_DBGLOG_PARAM_LOG_LEVEL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	___cpu_to_le32
	str	x0, [x23, #8]
	mov	x0, x20
	bl	___cpu_to_le32
	str	x0, [x23]
Lloh13:
	adrp	x8, _WMI_TLV_TAG_ARRAY_UINT32@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WMI_TLV_TAG_ARRAY_UINT32@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	bl	___cpu_to_le16
	str	x0, [x22, #48]
	mov	x0, #0
	bl	___cpu_to_le16
	str	x0, [x22, #40]
Lloh16:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	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_2:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_TLV_DBGLOG_LOG_LEVEL_VERBOSE,4,2 ; @WMI_TLV_DBGLOG_LOG_LEVEL_VERBOSE
	.comm	_WMI_TLV_DBGLOG_ALL_MODULES,8,3 ; @WMI_TLV_DBGLOG_ALL_MODULES
	.comm	_WMI_TLV_DBGLOG_LOG_LEVEL_WARN,4,2 ; @WMI_TLV_DBGLOG_LOG_LEVEL_WARN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_DEBUG_LOG_CONFIG_CMD,8,3 ; @WMI_TLV_TAG_STRUCT_DEBUG_LOG_CONFIG_CMD
	.comm	_WMI_TLV_DBGLOG_PARAM_LOG_LEVEL,4,2 ; @WMI_TLV_DBGLOG_PARAM_LOG_LEVEL
	.comm	_WMI_TLV_TAG_ARRAY_UINT32,8,3   ; @WMI_TLV_TAG_ARRAY_UINT32
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi tlv dbglog value 0x%08x\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_dbglog_cfg
.subsections_via_symbols
