	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_wmi_set_xusb2pr
_asus_wmi_set_xusb2pr:                  ## @asus_wmi_set_xusb2pr
	.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
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_USB_INTEL_XUSB2PR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%rax, %rdi
	callq	_pci_read_config_dword
	movl	(%r15), %r15d
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_pci_write_config_dword
	movl	-28(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_pr_info
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ## @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI,4,2 ## @PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI
	.comm	_USB_INTEL_XUSB2PR,4,2          ## @USB_INTEL_XUSB2PR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set USB_INTEL_XUSB2PR old: 0x%04x, new: 0x%04x\n"

	.no_dead_strip	_asus_wmi_set_xusb2pr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_wmi_set_xusb2pr
_asus_wmi_set_xusb2pr:                  ; @asus_wmi_set_xusb2pr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w19, [x8]
Lloh0:
	adrp	x8, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_pci_get_device
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x21, _USB_INTEL_XUSB2PR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _USB_INTEL_XUSB2PR@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w21, [x21]
	mov	x0, x19
	bl	_cpu_to_le32
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_pci_write_config_dword
	ldr	w1, [sp, #12]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pr_info
LBB0_2:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ; @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI,4,2 ; @PCI_DEVICE_ID_INTEL_LYNXPOINT_LP_XHCI
	.comm	_USB_INTEL_XUSB2PR,4,2          ; @USB_INTEL_XUSB2PR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set USB_INTEL_XUSB2PR old: 0x%04x, new: 0x%04x\n"

	.no_dead_strip	_asus_wmi_set_xusb2pr
.subsections_via_symbols
