	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_chipset_aec62xx
_init_chipset_aec62xx:                  ## @init_chipset_aec62xx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PCI_DEVICE_ID_ARTOP_ATP865@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_PCI_DEVICE_ID_ARTOP_ATP865R@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movl	$0, -24(%rbp)
	movl	$0, -20(%rbp)
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$73, %esi
	callq	_pci_read_config_byte
	movl	-24(%rbp), %edx
	andl	$-49, %edx
	movq	%rbx, %rdi
	movl	$73, %esi
	callq	_pci_write_config_byte
	leaq	-20(%rbp), %r14
	movq	%rbx, %rdi
	movl	$74, %esi
	movq	%r14, %rdx
	callq	_pci_read_config_byte
	movl	-20(%rbp), %edx
	andl	$-2, %edx
	movq	%rbx, %rdi
	movl	$74, %esi
	callq	_pci_write_config_byte
	movq	%rbx, %rdi
	movl	$74, %esi
	movq	%r14, %rdx
	callq	_pci_read_config_byte
	movl	$128, %edx
	orl	-20(%rbp), %edx
	movq	%rbx, %rdi
	movl	$74, %esi
	callq	_pci_write_config_byte
LBB0_3:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DEVICE_ID_ARTOP_ATP865,8,3 ## @PCI_DEVICE_ID_ARTOP_ATP865
	.comm	_PCI_DEVICE_ID_ARTOP_ATP865R,8,3 ## @PCI_DEVICE_ID_ARTOP_ATP865R
	.no_dead_strip	_init_chipset_aec62xx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_chipset_aec62xx
_init_chipset_aec62xx:                  ; @init_chipset_aec62xx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PCI_DEVICE_ID_ARTOP_ATP865@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCI_DEVICE_ID_ARTOP_ATP865@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PCI_DEVICE_ID_ARTOP_ATP865R@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PCI_DEVICE_ID_ARTOP_ATP865R@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	str	xzr, [sp, #8]
	add	x2, sp, #12
	mov	w1, #73
	bl	_pci_read_config_byte
	ldr	w8, [sp, #12]
	and	w2, w8, #0xffffffcf
	mov	x0, x19
	mov	w1, #73
	bl	_pci_write_config_byte
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #74
	bl	_pci_read_config_byte
	ldr	w8, [sp, #8]
	and	w2, w8, #0xfffffffe
	mov	x0, x19
	mov	w1, #74
	bl	_pci_write_config_byte
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #74
	bl	_pci_read_config_byte
	ldr	w8, [sp, #8]
	orr	w2, w8, #0x80
	mov	x0, x19
	mov	w1, #74
	bl	_pci_write_config_byte
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DEVICE_ID_ARTOP_ATP865,8,3 ; @PCI_DEVICE_ID_ARTOP_ATP865
	.comm	_PCI_DEVICE_ID_ARTOP_ATP865R,8,3 ; @PCI_DEVICE_ID_ARTOP_ATP865R
	.no_dead_strip	_init_chipset_aec62xx
.subsections_via_symbols
