	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quirk_sis_503
_quirk_sis_503:                         ## @quirk_sis_503
	.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	_SIS_DETECT_REGISTER@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_pci_read_config_byte
	movl	(%r14), %esi
	movl	-20(%rbp), %edx
	orl	$64, %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	movq	_PCI_DEVICE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_word
	movl	-24(%rbp), %eax
	cmpl	$24, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ecx
	andl	$65520, %ecx                    ## imm = 0xFFF0
	cmpl	$2400, %ecx                     ## imm = 0x960
	je	LBB0_3
## %bb.2:
	movl	(%r14), %esi
	movl	-20(%rbp), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_byte
	jmp	LBB0_4
LBB0_3:
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_quirk_sis_96x_smbus
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIS_DETECT_REGISTER,4,2        ## @SIS_DETECT_REGISTER
	.comm	_PCI_DEVICE_ID,4,2              ## @PCI_DEVICE_ID
	.no_dead_strip	_quirk_sis_503
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quirk_sis_503
_quirk_sis_503:                         ; @quirk_sis_503
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _SIS_DETECT_REGISTER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SIS_DETECT_REGISTER@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_pci_read_config_byte
	ldr	w1, [x20]
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x40
	mov	x0, x19
	bl	_pci_write_config_byte
Lloh2:
	adrp	x8, _PCI_DEVICE_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_DEVICE_ID@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w8, [sp, #8]
	cmp	w8, #24
	b.eq	LBB0_3
; %bb.1:
	and	w9, w8, #0xfff0
	cmp	w9, #2400
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_pci_write_config_byte
	b	LBB0_4
LBB0_3:
	str	w8, [x19]
	mov	x0, x19
	bl	_quirk_sis_96x_smbus
LBB0_4:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SIS_DETECT_REGISTER,4,2        ; @SIS_DETECT_REGISTER
	.comm	_PCI_DEVICE_ID,4,2              ; @PCI_DEVICE_ID
	.no_dead_strip	_quirk_sis_503
.subsections_via_symbols
