	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uc_fw_xfer
_uc_fw_xfer:                            ## @uc_fw_xfer
	.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
	movl	%ecx, %ebx
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rdi
	movq	16(%rsi), %r15
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	callq	_i915_inject_load_error
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_intel_uncore_forcewake_get
	movl	8(%r12), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_uc_fw_ggtt_offset
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_upper_32_bits
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	_DMA_ADDR_0_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_lower_32_bits
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_intel_uncore_write_fw
	movq	_DMA_ADDR_0_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_upper_32_bits
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_intel_uncore_write_fw
	movq	_DMA_ADDR_1_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_intel_uncore_write_fw
	movq	_DMA_ADDR_1_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DMA_ADDRESS_SPACE_WOPCM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_intel_uncore_write_fw
	movq	_DMA_COPY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	addl	$4, %edx
	movq	%r15, %rdi
	callq	_intel_uncore_write_fw
	movq	_DMA_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_START_DMA@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	orl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	callq	__MASKED_BIT_ENABLE
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_intel_uncore_write_fw
	movl	(%r13), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$100, %r8d
	callq	_intel_wait_for_register_fw
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movl	(%rax), %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_intel_uc_fw_type_repr
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_intel_uncore_read_fw
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_3:
	movl	(%r13), %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	__MASKED_BIT_DISABLE
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_intel_uncore_write_fw
	movq	_FORCEWAKE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_intel_uncore_forcewake_put
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_FORCEWAKE_ALL,4,2              ## @FORCEWAKE_ALL
	.comm	_DMA_ADDR_0_LOW,4,2             ## @DMA_ADDR_0_LOW
	.comm	_DMA_ADDR_0_HIGH,4,2            ## @DMA_ADDR_0_HIGH
	.comm	_DMA_ADDR_1_LOW,4,2             ## @DMA_ADDR_1_LOW
	.comm	_DMA_ADDR_1_HIGH,4,2            ## @DMA_ADDR_1_HIGH
	.comm	_DMA_ADDRESS_SPACE_WOPCM,4,2    ## @DMA_ADDRESS_SPACE_WOPCM
	.comm	_DMA_COPY_SIZE,4,2              ## @DMA_COPY_SIZE
	.comm	_DMA_CTRL,4,2                   ## @DMA_CTRL
	.comm	_START_DMA,4,2                  ## @START_DMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA for %s fw failed, DMA_CTRL=%u\n"

	.no_dead_strip	_uc_fw_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uc_fw_xfer
_uc_fw_xfer:                            ; @uc_fw_xfer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x19, [x1, #16]
	ldr	x0, [x1]
Lloh0:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w1, w8
	bl	_i915_inject_load_error
	mov	x24, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x26, _FORCEWAKE_ALL@GOTPAGE
Lloh4:
	ldr	x26, [x26, _FORCEWAKE_ALL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_intel_uncore_forcewake_get
	ldr	w1, [x22, #8]
	mov	x0, x21
	bl	_uc_fw_ggtt_offset
	mov	x24, x0
	bl	_upper_32_bits
	and	w0, w0, #0xffff0000
	bl	_GEM_BUG_ON
Lloh5:
	adrp	x8, _DMA_ADDR_0_LOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_ADDR_0_LOW@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
	mov	x0, x24
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_intel_uncore_write_fw
Lloh8:
	adrp	x8, _DMA_ADDR_0_HIGH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_ADDR_0_HIGH@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
	mov	x0, x24
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_intel_uncore_write_fw
Lloh11:
	adrp	x8, _DMA_ADDR_1_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_ADDR_1_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_intel_uncore_write_fw
Lloh14:
	adrp	x8, _DMA_ADDR_1_HIGH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMA_ADDR_1_HIGH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _DMA_ADDRESS_SPACE_WOPCM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMA_ADDRESS_SPACE_WOPCM@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_intel_uncore_write_fw
Lloh20:
	adrp	x8, _DMA_COPY_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMA_COPY_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w8, [x21]
	add	w2, w8, #4
	mov	x0, x19
	bl	_intel_uncore_write_fw
Lloh23:
	adrp	x25, _DMA_CTRL@GOTPAGE
Lloh24:
	ldr	x25, [x25, _DMA_CTRL@GOTPAGEOFF]
	ldr	w23, [x25]
Lloh25:
	adrp	x24, _START_DMA@GOTPAGE
Lloh26:
	ldr	x24, [x24, _START_DMA@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w0, w8, w20
	bl	__MASKED_BIT_ENABLE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_intel_uncore_write_fw
	ldr	w1, [x25]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #100
	bl	_intel_wait_for_register_fw
	mov	x24, x0
	cbz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x22]
	ldr	w22, [x8]
	ldr	w0, [x21, #4]
	bl	_intel_uc_fw_type_repr
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_intel_uncore_read_fw
	mov	x3, x0
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_err
LBB0_3:
	ldr	w21, [x25]
	mov	x0, x20
	bl	__MASKED_BIT_DISABLE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_intel_uncore_write_fw
	ldr	w1, [x26]
	mov	x0, x19
	bl	_intel_uncore_forcewake_put
LBB0_4:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_FORCEWAKE_ALL,4,2              ; @FORCEWAKE_ALL
	.comm	_DMA_ADDR_0_LOW,4,2             ; @DMA_ADDR_0_LOW
	.comm	_DMA_ADDR_0_HIGH,4,2            ; @DMA_ADDR_0_HIGH
	.comm	_DMA_ADDR_1_LOW,4,2             ; @DMA_ADDR_1_LOW
	.comm	_DMA_ADDR_1_HIGH,4,2            ; @DMA_ADDR_1_HIGH
	.comm	_DMA_ADDRESS_SPACE_WOPCM,4,2    ; @DMA_ADDRESS_SPACE_WOPCM
	.comm	_DMA_COPY_SIZE,4,2              ; @DMA_COPY_SIZE
	.comm	_DMA_CTRL,4,2                   ; @DMA_CTRL
	.comm	_START_DMA,4,2                  ; @START_DMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA for %s fw failed, DMA_CTRL=%u\n"

	.no_dead_strip	_uc_fw_xfer
.subsections_via_symbols
