	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_upload_ulv_state
_si_upload_ulv_state:                   ## @si_upload_ulv_state
	.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	_si_get_pi
	movq	%rax, %rbx
	xorl	%eax, %eax
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %r13d
	movq	_SISLANDS_SMC_STATETABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ULVState@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	movl	%eax, %r12d
	movq	%rbx, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_si_populate_ulv_state
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addl	%r13d, %r12d
	movl	4(%rbx), %r8d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	$4, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amdgpu_si_copy_bytes_to_smc    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SISLANDS_SMC_STATETABLE,4,2    ## @SISLANDS_SMC_STATETABLE
	.comm	_ULVState,4,2                   ## @ULVState
	.no_dead_strip	_si_upload_ulv_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_upload_ulv_state
_si_upload_ulv_state:                   ; @si_upload_ulv_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_si_get_pi
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x21, x20
	ldr	w23, [x21], #8
Lloh0:
	adrp	x8, _SISLANDS_SMC_STATETABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SISLANDS_SMC_STATETABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ULVState@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ULVState@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_offsetof
	mov	x22, x0
	mov	x0, x21
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	mov	x1, x21
	bl	_si_populate_ulv_state
	cbnz	w0, LBB0_5
; %bb.3:
	add	w1, w22, w23
	ldr	w4, [x20, #4]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_amdgpu_si_copy_bytes_to_smc
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SISLANDS_SMC_STATETABLE,4,2    ; @SISLANDS_SMC_STATETABLE
	.comm	_ULVState,4,2                   ; @ULVState
	.no_dead_strip	_si_upload_ulv_state
.subsections_via_symbols
