	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_dbgfs_ltr_config_write
_iwl_dbgfs_ltr_config_write:            ## @iwl_dbgfs_ltr_config_write
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	callq	_iwl_mvm_firmware_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	-32(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %r8
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$12
	pushq	$8
	pushq	$4
	callq	_sscanf
	addq	$32, %rsp
	cmpl	$7, %eax
	jne	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_LTR_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$24, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_ERR
LBB0_7:
	testl	%ebx, %ebx
	movslq	%ebx, %rax
	cmoveq	%r14, %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,8,3                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x,%x,%x,%x,%x,%x,%x"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_LTR_CONFIG,4,2                 ## @LTR_CONFIG
L_.str.1:                               ## @.str.1
	.asciz	"failed to send ltr configuration cmd\n"

	.no_dead_strip	_iwl_dbgfs_ltr_config_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_dbgfs_ltr_config_write
_iwl_dbgfs_ltr_config_write:            ; @iwl_dbgfs_ltr_config_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	bl	_iwl_mvm_firmware_running
	cbz	w0, LBB0_5
; %bb.1:
	add	x8, sp, #8
	add	x2, x8, #16
	add	x3, x8, #12
	add	x4, x8, #8
	mov	w8, #12
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x5, #0
	mov	w6, #4
	mov	w7, #8
	bl	_sscanf
	cmp	w0, #7
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_mutex_lock
Lloh2:
	adrp	x8, _LTR_CONFIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LTR_CONFIG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	w2, #0
	mov	w3, #24
	bl	_iwl_mvm_send_cmd_pdu
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w21, LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_IWL_ERR
LBB0_4:
	sxtw	x8, w21
	cmp	w21, #0
	csel	x0, x19, x8, eq
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,8,3                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x,%x,%x,%x,%x,%x,%x"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_LTR_CONFIG,4,2                 ; @LTR_CONFIG
l_.str.1:                               ; @.str.1
	.asciz	"failed to send ltr configuration cmd\n"

	.no_dead_strip	_iwl_dbgfs_ltr_config_write
.subsections_via_symbols
