	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sis5513_init_one
_sis5513_init_one:                      ## @sis5513_init_one
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_sis5513_chipset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_pci_enable_device
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_sis_find_family
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_chipset_family@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ATA_133@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_4
## %bb.5:
	movq	_sis_port_ops@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movq	_sis_ata133_port_ops@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	%rcx, -16(%rbp)
	leaq	l___const.sis5513_init_one.udma_rates(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -24(%rbp)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ide_pci_init_one
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sis5513_chipset,16,3           ## @sis5513_chipset
	.section	__TEXT,__const
	.p2align	4                               ## @__const.sis5513_init_one.udma_rates
l___const.sis5513_init_one.udma_rates:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	7                               ## 0x7
	.long	31                              ## 0x1f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_chipset_family,8,3             ## @chipset_family
	.comm	_ATA_133,8,3                    ## @ATA_133
	.comm	_sis_ata133_port_ops,4,2        ## @sis_ata133_port_ops
	.comm	_sis_port_ops,4,2               ## @sis_port_ops
	.no_dead_strip	_sis5513_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sis5513_init_one
_sis5513_init_one:                      ; @sis5513_init_one
	.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	x8, _sis5513_chipset@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sis5513_chipset@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
	bl	_pci_enable_device
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_sis_find_family
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _chipset_family@GOTPAGE
Lloh4:
	ldr	x8, [x8, _chipset_family@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ATA_133@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_133@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _sis_ata133_port_ops@GOTPAGE
Lloh10:
	ldr	x10, [x10, _sis_ata133_port_ops@GOTPAGEOFF]
Lloh11:
	adrp	x11, _sis_port_ops@GOTPAGE
Lloh12:
	ldr	x11, [x11, _sis_port_ops@GOTPAGEOFF]
	cmp	x8, x9
	csel	x9, x11, x10, lo
	str	x9, [sp, #8]
Lloh13:
	adrp	x9, l___const.sis5513_init_one.udma_rates@PAGE
Lloh14:
	add	x9, x9, l___const.sis5513_init_one.udma_rates@PAGEOFF
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	x2, #0
	bl	_ide_pci_init_one
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_sis5513_chipset,16,3           ; @sis5513_chipset
	.section	__TEXT,__const
	.p2align	2                               ; @__const.sis5513_init_one.udma_rates
l___const.sis5513_init_one.udma_rates:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	7                               ; 0x7
	.long	31                              ; 0x1f
	.long	63                              ; 0x3f
	.long	63                              ; 0x3f
	.long	127                             ; 0x7f
	.long	127                             ; 0x7f

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_chipset_family,8,3             ; @chipset_family
	.comm	_ATA_133,8,3                    ; @ATA_133
	.comm	_sis_ata133_port_ops,4,2        ; @sis_ata133_port_ops
	.comm	_sis_port_ops,4,2               ; @sis_port_ops
	.no_dead_strip	_sis5513_init_one
.subsections_via_symbols
