	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_i2c_poll_tx_status
_smu_v11_0_i2c_poll_tx_status:          ## @smu_v11_0_i2c_poll_tx_status
	.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	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_to_amdgpu_device
	movq	_I2C_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movl	$20, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	_mmCKSVII2C_IC_STATUS@GOTPCREL(%rip), %r13
	movq	_CKSVII2C_IC_STATUS@GOTPCREL(%rip), %r15
	movq	_TFE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SMUIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	%eax, %edi
	callq	_REG_GET_FIELD
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_5
LBB0_2:
	movq	_I2C_SW_TIMEOUT@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	orl	(%rax), %ebx
LBB0_5:
	movq	_I2C_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	movq	_SMUIO@GOTPCREL(%rip), %r14
	jne	LBB0_13
## %bb.6:
	movl	(%r14), %edi
	movq	_mmCKSVII2C_IC_INTR_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_CKSVII2C_IC_INTR_STAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_R_TX_ABRT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_REG_GET_FIELD
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.7:
	movl	(%r14), %edi
	movq	_mmCKSVII2C_IC_TX_ABRT_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_INFO
	movq	_CKSVII2C_IC_TX_ABRT_SOURCE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_ABRT_TXDATA_NOACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_REG_GET_FIELD
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.8:
	movq	_I2C_NAK_TXDATA_NOACK@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_9:
	movl	(%r14), %esi
	movq	_ABRT_7B_ADDR_NOACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_REG_GET_FIELD
	cmpl	$1, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_10
## %bb.11:
	movq	_I2C_NAK_7B_ADDR_NOACK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_I2C_ABORT@GOTPCREL(%rip), %rax
LBB0_12:
	orl	(%rax), %ebx
	callq	_smu_v11_0_i2c_clear_status
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_OK,4,2                     ## @I2C_OK
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_I2C_SW_TIMEOUT,4,2             ## @I2C_SW_TIMEOUT
	.comm	_SMUIO,4,2                      ## @SMUIO
	.comm	_mmCKSVII2C_IC_STATUS,4,2       ## @mmCKSVII2C_IC_STATUS
	.comm	_CKSVII2C_IC_STATUS,4,2         ## @CKSVII2C_IC_STATUS
	.comm	_TFE,4,2                        ## @TFE
	.comm	_mmCKSVII2C_IC_INTR_STAT,4,2    ## @mmCKSVII2C_IC_INTR_STAT
	.comm	_CKSVII2C_IC_INTR_STAT,4,2      ## @CKSVII2C_IC_INTR_STAT
	.comm	_R_TX_ABRT,4,2                  ## @R_TX_ABRT
	.comm	_mmCKSVII2C_IC_TX_ABRT_SOURCE,4,2 ## @mmCKSVII2C_IC_TX_ABRT_SOURCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX was terminated, IC_TX_ABRT_SOURCE val is:%x"

	.comm	_CKSVII2C_IC_TX_ABRT_SOURCE,4,2 ## @CKSVII2C_IC_TX_ABRT_SOURCE
	.comm	_ABRT_TXDATA_NOACK,4,2          ## @ABRT_TXDATA_NOACK
	.comm	_I2C_NAK_TXDATA_NOACK,4,2       ## @I2C_NAK_TXDATA_NOACK
	.comm	_ABRT_7B_ADDR_NOACK,4,2         ## @ABRT_7B_ADDR_NOACK
	.comm	_I2C_NAK_7B_ADDR_NOACK,4,2      ## @I2C_NAK_7B_ADDR_NOACK
	.comm	_I2C_ABORT,4,2                  ## @I2C_ABORT
	.no_dead_strip	_smu_v11_0_i2c_poll_tx_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_i2c_poll_tx_status
_smu_v11_0_i2c_poll_tx_status:          ; @smu_v11_0_i2c_poll_tx_status
	.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	x20, x0
	bl	_to_amdgpu_device
Lloh0:
	adrp	x23, _I2C_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _I2C_OK@GOTPAGEOFF]
	ldr	w19, [x23]
Lloh2:
	adrp	x24, _jiffies@GOTPAGE
Lloh3:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x21, [x24]
	mov	w0, #20
	bl	_msecs_to_jiffies
	add	x21, x0, x21
Lloh4:
	adrp	x22, _SMUIO@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SMUIO@GOTPAGEOFF]
Lloh6:
	adrp	x25, _mmCKSVII2C_IC_STATUS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _mmCKSVII2C_IC_STATUS@GOTPAGEOFF]
Lloh8:
	adrp	x26, _CKSVII2C_IC_STATUS@GOTPAGE
Lloh9:
	ldr	x26, [x26, _CKSVII2C_IC_STATUS@GOTPAGEOFF]
Lloh10:
	adrp	x27, _TFE@GOTPAGE
Lloh11:
	ldr	x27, [x27, _TFE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	mov	x1, x21
	bl	_time_after
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22]
	ldr	w2, [x25]
	mov	w1, #0
	bl	_RREG32_SOC15
	ldr	w1, [x26]
	ldr	w2, [x27]
	bl	_REG_GET_FIELD
	cbz	w0, LBB0_1
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _I2C_SW_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2C_SW_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_4:
	ldr	w8, [x23]
	cmp	w19, w8
	b.ne	LBB0_10
; %bb.5:
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _mmCKSVII2C_IC_INTR_STAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mmCKSVII2C_IC_INTR_STAT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh18:
	adrp	x8, _CKSVII2C_IC_INTR_STAT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CKSVII2C_IC_INTR_STAT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _R_TX_ABRT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _R_TX_ABRT@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_REG_GET_FIELD
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.6:
	ldr	w0, [x22]
Lloh24:
	adrp	x8, _mmCKSVII2C_IC_TX_ABRT_SOURCE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mmCKSVII2C_IC_TX_ABRT_SOURCE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
	mov	x21, x0
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_INFO
Lloh29:
	adrp	x22, _CKSVII2C_IC_TX_ABRT_SOURCE@GOTPAGE
Lloh30:
	ldr	x22, [x22, _CKSVII2C_IC_TX_ABRT_SOURCE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh31:
	adrp	x8, _ABRT_TXDATA_NOACK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ABRT_TXDATA_NOACK@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_REG_GET_FIELD
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh34:
	adrp	x8, _I2C_NAK_TXDATA_NOACK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _I2C_NAK_TXDATA_NOACK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	w1, [x22]
Lloh36:
	adrp	x8, _ABRT_7B_ADDR_NOACK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ABRT_7B_ADDR_NOACK@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_REG_GET_FIELD
Lloh39:
	adrp	x8, _I2C_ABORT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _I2C_ABORT@GOTPAGEOFF]
Lloh41:
	adrp	x9, _I2C_NAK_7B_ADDR_NOACK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _I2C_NAK_7B_ADDR_NOACK@GOTPAGEOFF]
	cmp	w0, #1
	csel	x8, x9, x8, eq
LBB0_9:
	ldr	w8, [x8]
	orr	w19, w8, w19
	mov	x0, x20
	bl	_smu_v11_0_i2c_clear_status
LBB0_10:
	mov	x0, x19
	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	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_OK,4,2                     ; @I2C_OK
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_I2C_SW_TIMEOUT,4,2             ; @I2C_SW_TIMEOUT
	.comm	_SMUIO,4,2                      ; @SMUIO
	.comm	_mmCKSVII2C_IC_STATUS,4,2       ; @mmCKSVII2C_IC_STATUS
	.comm	_CKSVII2C_IC_STATUS,4,2         ; @CKSVII2C_IC_STATUS
	.comm	_TFE,4,2                        ; @TFE
	.comm	_mmCKSVII2C_IC_INTR_STAT,4,2    ; @mmCKSVII2C_IC_INTR_STAT
	.comm	_CKSVII2C_IC_INTR_STAT,4,2      ; @CKSVII2C_IC_INTR_STAT
	.comm	_R_TX_ABRT,4,2                  ; @R_TX_ABRT
	.comm	_mmCKSVII2C_IC_TX_ABRT_SOURCE,4,2 ; @mmCKSVII2C_IC_TX_ABRT_SOURCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX was terminated, IC_TX_ABRT_SOURCE val is:%x"

	.comm	_CKSVII2C_IC_TX_ABRT_SOURCE,4,2 ; @CKSVII2C_IC_TX_ABRT_SOURCE
	.comm	_ABRT_TXDATA_NOACK,4,2          ; @ABRT_TXDATA_NOACK
	.comm	_I2C_NAK_TXDATA_NOACK,4,2       ; @I2C_NAK_TXDATA_NOACK
	.comm	_ABRT_7B_ADDR_NOACK,4,2         ; @ABRT_7B_ADDR_NOACK
	.comm	_I2C_NAK_7B_ADDR_NOACK,4,2      ; @I2C_NAK_7B_ADDR_NOACK
	.comm	_I2C_ABORT,4,2                  ; @I2C_ABORT
	.no_dead_strip	_smu_v11_0_i2c_poll_tx_status
.subsections_via_symbols
