	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fw_domain_wait_ack_with_fallback
_fw_domain_wait_ack_with_fallback:      ## @fw_domain_wait_ack_with_fallback
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FORCEWAKE_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ACK_SET@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	cmpl	%esi, (%rcx)
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	cmovel	%edx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movl	$1, %r12d
	movl	$10, %r13d
	movq	_FORCEWAKE_KERNEL_FALLBACK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_wait_ack_clear
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_fw_set
	movl	%r13d, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_wait_ack_set
	movq	%r15, %rdi
	callq	_fw_ack
	movl	%eax, %ebx
	andl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_fw_clear
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	addl	$10, %r13d
	cmpl	$110, %r13d
	jne	LBB0_1
## %bb.3:
	movl	$11, %r12d
LBB0_4:
	movl	(%r15), %edi
	callq	_intel_uncore_forcewake_domain_to_str
	movl	%eax, %r14d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_ACK_SET@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r13
	cmoveq	%rax, %r13
	movq	%r15, %rdi
	callq	_fw_ack
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	callq	_DRM_DEBUG_DRIVER
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	cmovel	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FORCEWAKE_KERNEL,4,2           ## @FORCEWAKE_KERNEL
	.comm	_ACK_SET,4,2                    ## @ACK_SET
	.comm	_FORCEWAKE_KERNEL_FALLBACK,4,2  ## @FORCEWAKE_KERNEL_FALLBACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s had to use fallback to %s ack, 0x%x (passes %u)\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"clear"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_fw_domain_wait_ack_with_fallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fw_domain_wait_ack_with_fallback
_fw_domain_wait_ack_with_fallback:      ; @fw_domain_wait_ack_with_fallback
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FORCEWAKE_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORCEWAKE_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x24, _ACK_SET@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ACK_SET@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w1
	csel	w23, w25, wzr, eq
	mov	w19, #1
	mov	w22, #10
Lloh5:
	adrp	x27, _FORCEWAKE_KERNEL_FALLBACK@GOTPAGE
Lloh6:
	ldr	x27, [x27, _FORCEWAKE_KERNEL_FALLBACK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x27]
	mov	x0, x20
	bl	_wait_ack_clear
	ldr	w1, [x27]
	mov	x0, x20
	bl	_fw_set
	mov	x0, x22
	bl	_udelay
	ldr	w1, [x27]
	mov	x0, x20
	bl	_wait_ack_set
	mov	x0, x20
	bl	_fw_ack
	and	w26, w0, w25
	ldr	w1, [x27]
	mov	x0, x20
	bl	_fw_clear
	cmp	w26, w23
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w19, w19, #1
	add	w22, w22, #10
	cmp	w22, #110
	b.ne	LBB0_1
; %bb.3:
	mov	w19, #11
LBB0_4:
	ldr	w0, [x20]
	bl	_intel_uncore_forcewake_domain_to_str
	mov	x22, x0
	ldr	w8, [x24]
Lloh7:
	adrp	x9, l_.str.2@PAGE
Lloh8:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh9:
	adrp	x10, l_.str.1@PAGE
Lloh10:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w21
	csel	x21, x10, x9, eq
	mov	x0, x20
	bl	_fw_ack
	mov	x3, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	mov	x4, x19
	bl	_DRM_DEBUG_DRIVER
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w26, w23
	csneg	w0, wzr, w8, eq
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FORCEWAKE_KERNEL,4,2           ; @FORCEWAKE_KERNEL
	.comm	_ACK_SET,4,2                    ; @ACK_SET
	.comm	_FORCEWAKE_KERNEL_FALLBACK,4,2  ; @FORCEWAKE_KERNEL_FALLBACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s had to use fallback to %s ack, 0x%x (passes %u)\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"clear"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_fw_domain_wait_ack_with_fallback
.subsections_via_symbols
