	.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_rx_status
_smu_v11_0_i2c_poll_rx_status:          ## @smu_v11_0_i2c_poll_rx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_amdgpu_device
	movq	_I2C_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SMUIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmCKSVII2C_IC_TX_ABRT_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_CKSVII2C_IC_TX_ABRT_SOURCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_ABRT_7B_ADDR_NOACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_REG_GET_FIELD
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_I2C_NAK_7B_ADDR_NOACK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_smu_v11_0_i2c_clear_status
	jmp	LBB0_7
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	movl	$20, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r14, %rbx
	movq	_mmCKSVII2C_IC_STATUS@GOTPCREL(%rip), %r13
	movq	_CKSVII2C_IC_STATUS@GOTPCREL(%rip), %r14
	movq	_RFNE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_SMUIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	%eax, %edi
	callq	_REG_GET_FIELD
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_4:
	movq	_I2C_SW_TIMEOUT@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	orl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %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	_SMUIO,4,2                      ## @SMUIO
	.comm	_mmCKSVII2C_IC_TX_ABRT_SOURCE,4,2 ## @mmCKSVII2C_IC_TX_ABRT_SOURCE
	.comm	_CKSVII2C_IC_TX_ABRT_SOURCE,4,2 ## @CKSVII2C_IC_TX_ABRT_SOURCE
	.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	_jiffies,8,3                    ## @jiffies
	.comm	_I2C_SW_TIMEOUT,4,2             ## @I2C_SW_TIMEOUT
	.comm	_mmCKSVII2C_IC_STATUS,4,2       ## @mmCKSVII2C_IC_STATUS
	.comm	_CKSVII2C_IC_STATUS,4,2         ## @CKSVII2C_IC_STATUS
	.comm	_RFNE,4,2                       ## @RFNE
	.no_dead_strip	_smu_v11_0_i2c_poll_rx_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_rx_status
_smu_v11_0_i2c_poll_rx_status:          ; @smu_v11_0_i2c_poll_rx_status
	.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, x0
	bl	_to_amdgpu_device
Lloh0:
	adrp	x8, _I2C_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x21, _SMUIO@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SMUIO@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _mmCKSVII2C_IC_TX_ABRT_SOURCE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmCKSVII2C_IC_TX_ABRT_SOURCE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh8:
	adrp	x8, _CKSVII2C_IC_TX_ABRT_SOURCE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CKSVII2C_IC_TX_ABRT_SOURCE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ABRT_7B_ADDR_NOACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ABRT_7B_ADDR_NOACK@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_REG_GET_FIELD
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _I2C_NAK_7B_ADDR_NOACK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I2C_NAK_7B_ADDR_NOACK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w19, w8, w19
	mov	x0, x20
	bl	_smu_v11_0_i2c_clear_status
	b	LBB0_6
LBB0_2:
Lloh17:
	adrp	x22, _jiffies@GOTPAGE
Lloh18:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x20, [x22]
	mov	w0, #20
	bl	_msecs_to_jiffies
	add	x20, x0, x20
Lloh19:
	adrp	x23, _mmCKSVII2C_IC_STATUS@GOTPAGE
Lloh20:
	ldr	x23, [x23, _mmCKSVII2C_IC_STATUS@GOTPAGEOFF]
Lloh21:
	adrp	x24, _CKSVII2C_IC_STATUS@GOTPAGE
Lloh22:
	ldr	x24, [x24, _CKSVII2C_IC_STATUS@GOTPAGEOFF]
Lloh23:
	adrp	x25, _RFNE@GOTPAGE
Lloh24:
	ldr	x25, [x25, _RFNE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_RREG32_SOC15
	ldr	w1, [x24]
	ldr	w2, [x25]
	bl	_REG_GET_FIELD
	cbz	w0, LBB0_3
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x8, _I2C_SW_TIMEOUT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _I2C_SW_TIMEOUT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_6:
	mov	x0, x19
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_OK,4,2                     ; @I2C_OK
	.comm	_SMUIO,4,2                      ; @SMUIO
	.comm	_mmCKSVII2C_IC_TX_ABRT_SOURCE,4,2 ; @mmCKSVII2C_IC_TX_ABRT_SOURCE
	.comm	_CKSVII2C_IC_TX_ABRT_SOURCE,4,2 ; @CKSVII2C_IC_TX_ABRT_SOURCE
	.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	_jiffies,8,3                    ; @jiffies
	.comm	_I2C_SW_TIMEOUT,4,2             ; @I2C_SW_TIMEOUT
	.comm	_mmCKSVII2C_IC_STATUS,4,2       ; @mmCKSVII2C_IC_STATUS
	.comm	_CKSVII2C_IC_STATUS,4,2         ; @CKSVII2C_IC_STATUS
	.comm	_RFNE,4,2                       ; @RFNE
	.no_dead_strip	_smu_v11_0_i2c_poll_rx_status
.subsections_via_symbols
