	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsx_comm_set_ltr_latency
_rtsx_comm_set_ltr_latency:             ## @rtsx_comm_set_ltr_latency
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_MSGTXDATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASK_8_BIT_DEF@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movzbl	%bl, %ecx
	callq	_rtsx_pci_write_register
	movq	_MSGTXDATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movzbl	%bh, %ecx
	movq	%r14, %rdi
	callq	_rtsx_pci_write_register
	movq	_MSGTXDATA2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %ecx
	movq	%r14, %rdi
	callq	_rtsx_pci_write_register
	movq	_MSGTXDATA3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	shrl	$24, %ebx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_rtsx_pci_write_register
	movq	_LTR_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LTR_TX_EN_MASK@GOTPCREL(%rip), %rax
	movq	_LTR_LATENCY_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_LTR_TX_EN_1@GOTPCREL(%rip), %rax
	movq	_LTR_LATENCY_MODE_SW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_rtsx_pci_write_register
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSGTXDATA0,4,2                 ## @MSGTXDATA0
	.comm	_MASK_8_BIT_DEF,4,2             ## @MASK_8_BIT_DEF
	.comm	_MSGTXDATA1,4,2                 ## @MSGTXDATA1
	.comm	_MSGTXDATA2,4,2                 ## @MSGTXDATA2
	.comm	_MSGTXDATA3,4,2                 ## @MSGTXDATA3
	.comm	_LTR_CTL,4,2                    ## @LTR_CTL
	.comm	_LTR_TX_EN_MASK,4,2             ## @LTR_TX_EN_MASK
	.comm	_LTR_LATENCY_MODE_MASK,4,2      ## @LTR_LATENCY_MODE_MASK
	.comm	_LTR_TX_EN_1,4,2                ## @LTR_TX_EN_1
	.comm	_LTR_LATENCY_MODE_SW,4,2        ## @LTR_LATENCY_MODE_SW
	.no_dead_strip	_rtsx_comm_set_ltr_latency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsx_comm_set_ltr_latency
_rtsx_comm_set_ltr_latency:             ; @rtsx_comm_set_ltr_latency
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MSGTXDATA0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSGTXDATA0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _MASK_8_BIT_DEF@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MASK_8_BIT_DEF@GOTPAGEOFF]
	ldr	w2, [x21]
	and	w3, w20, #0xff
	bl	_rtsx_pci_write_register
Lloh5:
	adrp	x8, _MSGTXDATA1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSGTXDATA1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x21]
	ubfx	w3, w20, #8, #8
	mov	x0, x19
	bl	_rtsx_pci_write_register
Lloh8:
	adrp	x8, _MSGTXDATA2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSGTXDATA2@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x21]
	ubfx	w3, w20, #16, #8
	mov	x0, x19
	bl	_rtsx_pci_write_register
Lloh11:
	adrp	x8, _MSGTXDATA3@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSGTXDATA3@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x21]
	lsr	w3, w20, #24
	mov	x0, x19
	bl	_rtsx_pci_write_register
Lloh14:
	adrp	x8, _LTR_CTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LTR_CTL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _LTR_TX_EN_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LTR_TX_EN_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _LTR_LATENCY_MODE_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LTR_LATENCY_MODE_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _LTR_TX_EN_1@GOTPAGE
Lloh24:
	ldr	x10, [x10, _LTR_TX_EN_1@GOTPAGEOFF]
	orr	w2, w9, w8
Lloh25:
	ldr	w8, [x10]
Lloh26:
	adrp	x9, _LTR_LATENCY_MODE_SW@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LTR_LATENCY_MODE_SW@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	bl	_rtsx_pci_write_register
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSGTXDATA0,4,2                 ; @MSGTXDATA0
	.comm	_MASK_8_BIT_DEF,4,2             ; @MASK_8_BIT_DEF
	.comm	_MSGTXDATA1,4,2                 ; @MSGTXDATA1
	.comm	_MSGTXDATA2,4,2                 ; @MSGTXDATA2
	.comm	_MSGTXDATA3,4,2                 ; @MSGTXDATA3
	.comm	_LTR_CTL,4,2                    ; @LTR_CTL
	.comm	_LTR_TX_EN_MASK,4,2             ; @LTR_TX_EN_MASK
	.comm	_LTR_LATENCY_MODE_MASK,4,2      ; @LTR_LATENCY_MODE_MASK
	.comm	_LTR_TX_EN_1,4,2                ; @LTR_TX_EN_1
	.comm	_LTR_LATENCY_MODE_SW,4,2        ; @LTR_LATENCY_MODE_SW
	.no_dead_strip	_rtsx_comm_set_ltr_latency
.subsections_via_symbols
