	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_tm_cmd_utf_start
_ath10k_tm_cmd_utf_start:               ## @ath10k_tm_cmd_utf_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	%rdi, %r15
	movq	_ATH10K_DBG_TESTMODE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ath10k_dbg
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_ATH10K_STATE_UTF@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EALREADY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_ATH10K_STATE_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	xorl	%edi, %edi
	cmpq	$0, 32(%r15)
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_ath10k_tm_fetch_firmware
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ath10k_err
	jmp	LBB0_8
LBB0_11:
	leaq	24(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 48(%r15)
	je	LBB0_15
## %bb.12:
	cmpq	$0, 40(%r15)
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ath10k_swap_code_seg_init
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	jmp	LBB0_19
LBB0_15:
	leaq	64(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movl	$1, 16(%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movl	(%r13), %esi
	movl	56(%r15), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movq	_ATH10K_FIRMWARE_MODE_UTF@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_ath10k_hif_power_up
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ath10k_err
	movq	_ATH10K_STATE_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_19
LBB0_17:
	movl	(%r13), %esi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_ath10k_core_start
	testl	%eax, %eax
	je	LBB0_23
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ath10k_err
	movq	_ATH10K_STATE_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_ath10k_hif_power_down
LBB0_19:
	cmpq	$0, 48(%r15)
	je	LBB0_22
## %bb.20:
	cmpq	$0, 40(%r15)
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ath10k_swap_code_seg_release
LBB0_22:
	movq	32(%r15), %rdi
	callq	_release_firmware
	movq	$0, 32(%r15)
	jmp	LBB0_8
LBB0_23:
	movq	(%r12), %rax
	movq	%rax, (%r15)
	movq	24(%r15), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	testq	%rax, %rax
	leaq	L_.str.6(%rip), %rdx
	cmovgq	%rbx, %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_ath10k_info
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_TESTMODE,4,2        ## @ATH10K_DBG_TESTMODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"testmode cmd utf start\n"

	.comm	_ATH10K_STATE_UTF,8,3           ## @ATH10K_STATE_UTF
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_ATH10K_STATE_OFF,8,3           ## @ATH10K_STATE_OFF
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EEXIST,4,2                     ## @EEXIST
L_.str.1:                               ## @.str.1
	.asciz	"failed to fetch UTF firmware: %d"

L_.str.2:                               ## @.str.2
	.asciz	"failed to init utf code swap segment: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"testmode wmi version %d\n"

	.comm	_ATH10K_FIRMWARE_MODE_UTF,4,2   ## @ATH10K_FIRMWARE_MODE_UTF
L_.str.4:                               ## @.str.4
	.asciz	"failed to power up hif (testmode): %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to start core (testmode): %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"API 1"

L_.str.7:                               ## @.str.7
	.asciz	"UTF firmware %s started\n"

	.no_dead_strip	_ath10k_tm_cmd_utf_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_tm_cmd_utf_start
_ath10k_tm_cmd_utf_start:               ; @ath10k_tm_cmd_utf_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
Lloh0:
	adrp	x25, _ATH10K_DBG_TESTMODE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ATH10K_DBG_TESTMODE@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ath10k_dbg
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh4:
	adrp	x24, _ATH10K_STATE_UTF@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ATH10K_STATE_UTF@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EALREADY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh8:
	adrp	x23, _ATH10K_STATE_OFF@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ATH10K_STATE_OFF@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20, #32]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_8
; %bb.4:
Lloh10:
	adrp	x8, _EEXIST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	mov	x0, x20
	bl	_ath10k_tm_fetch_firmware
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_ath10k_err
	b	LBB0_7
LBB0_10:
	add	x21, x20, #24
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_14
; %bb.11:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_14
; %bb.12:
	mov	x0, x20
	mov	x1, x21
	bl	_ath10k_swap_code_seg_init
	cbz	w0, LBB0_14
; %bb.13:
	mov	x22, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_ath10k_warn
	b	LBB0_18
LBB0_14:
	add	x22, x20, #64
	mov	x0, x22
	bl	_spin_lock_bh
	mov	w8, #1
	str	w8, [x20, #16]
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	w1, [x25]
	ldr	w8, [x20, #56]
	str	x8, [sp]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_ath10k_dbg
Lloh20:
	adrp	x25, _ATH10K_FIRMWARE_MODE_UTF@GOTPAGE
Lloh21:
	ldr	x25, [x25, _ATH10K_FIRMWARE_MODE_UTF@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_ath10k_hif_power_up
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_ath10k_err
	ldr	x8, [x23]
	str	x8, [x20]
	b	LBB0_18
LBB0_16:
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x21
	bl	_ath10k_core_start
	mov	x22, x0
	cbz	w0, LBB0_22
; %bb.17:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_ath10k_err
	ldr	x8, [x23]
	str	x8, [x20]
	mov	x0, x20
	bl	_ath10k_hif_power_down
LBB0_18:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_21
; %bb.19:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x20
	mov	x1, x21
	bl	_ath10k_swap_code_seg_release
LBB0_21:
	ldr	x0, [x20, #32]
	bl	_release_firmware
	str	xzr, [x20, #32]
	b	LBB0_7
LBB0_22:
	ldr	x8, [x24]
	str	x8, [x20]
	ldr	x21, [x20, #24]
	mov	x0, x21
	bl	_strlen
Lloh26:
	adrp	x8, l_.str.6@PAGE
Lloh27:
	add	x8, x8, l_.str.6@PAGEOFF
	cmp	x0, #0
	csel	x2, x21, x8, gt
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_ath10k_info
	b	LBB0_7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_TESTMODE,4,2        ; @ATH10K_DBG_TESTMODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testmode cmd utf start\n"

	.comm	_ATH10K_STATE_UTF,8,3           ; @ATH10K_STATE_UTF
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_ATH10K_STATE_OFF,8,3           ; @ATH10K_STATE_OFF
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EEXIST,4,2                     ; @EEXIST
l_.str.1:                               ; @.str.1
	.asciz	"failed to fetch UTF firmware: %d"

l_.str.2:                               ; @.str.2
	.asciz	"failed to init utf code swap segment: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"testmode wmi version %d\n"

	.comm	_ATH10K_FIRMWARE_MODE_UTF,4,2   ; @ATH10K_FIRMWARE_MODE_UTF
l_.str.4:                               ; @.str.4
	.asciz	"failed to power up hif (testmode): %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to start core (testmode): %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"API 1"

l_.str.7:                               ; @.str.7
	.asciz	"UTF firmware %s started\n"

	.no_dead_strip	_ath10k_tm_cmd_utf_start
.subsections_via_symbols
