	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svwks_init_one
_svwks_init_one:                        ## @svwks_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_serverworks_chipsets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %ebx
	movl	%ebx, -32(%rbp)
	cmpq	$1, %rax
	jne	LBB0_4
## %bb.1:
	movq	_IDE_HFLAG_CLEAR_SIMPLEX@GOTPCREL(%rip), %rax
LBB0_2:
	orl	(%rax), %ebx
LBB0_3:
	movl	%ebx, -32(%rbp)
	jmp	LBB0_9
LBB0_4:
	andq	$-2, %rax
	cmpq	$2, %rax
	jne	LBB0_9
## %bb.5:
	movl	(%r14), %edi
	callq	_PCI_FUNC
	testb	$1, %al
	jne	LBB0_10
## %bb.6:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	cmpl	$497, %eax                      ## imm = 0x1F1
	je	LBB0_8
## %bb.7:
	movq	_IDE_HFLAG_NON_BOOTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_8:
	orl	%r15d, %ebx
	movq	_IDE_HFLAG_SINGLE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ide_pci_init_one
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_IDE_HFLAG_SINGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_serverworks_chipsets,8,3       ## @serverworks_chipsets
	.comm	_IDE_HFLAG_CLEAR_SIMPLEX,4,2    ## @IDE_HFLAG_CLEAR_SIMPLEX
	.comm	_IDE_HFLAG_NON_BOOTABLE,4,2     ## @IDE_HFLAG_NON_BOOTABLE
	.comm	_IDE_HFLAG_SINGLE,4,2           ## @IDE_HFLAG_SINGLE
	.no_dead_strip	_svwks_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svwks_init_one
_svwks_init_one:                        ; @svwks_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	x9, _serverworks_chipsets@GOTPAGE
Lloh1:
	ldr	x9, [x9, _serverworks_chipsets@GOTPAGEOFF]
	ldr	x8, [x1]
Lloh2:
	ldr	x9, [x9]
	ldr	w20, [x9, x8, lsl #2]
	str	w20, [sp, #8]
	cmp	x8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IDE_HFLAG_CLEAR_SIMPLEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDE_HFLAG_CLEAR_SIMPLEX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w20
	b	LBB0_6
LBB0_2:
	and	x8, x8, #0xfffffffffffffffe
	cmp	x8, #2
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x19]
	bl	_PCI_FUNC
	tbnz	w0, #0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_start
Lloh6:
	adrp	x8, _IDE_HFLAG_NON_BOOTABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDE_HFLAG_NON_BOOTABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #497
	csel	w8, wzr, w8, eq
	orr	w8, w20, w8
Lloh9:
	adrp	x9, _IDE_HFLAG_SINGLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IDE_HFLAG_SINGLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _IDE_HFLAG_SINGLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IDE_HFLAG_SINGLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w8, w20, w8
LBB0_6:
	str	w8, [sp, #8]
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_ide_pci_init_one
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_serverworks_chipsets,8,3       ; @serverworks_chipsets
	.comm	_IDE_HFLAG_CLEAR_SIMPLEX,4,2    ; @IDE_HFLAG_CLEAR_SIMPLEX
	.comm	_IDE_HFLAG_NON_BOOTABLE,4,2     ; @IDE_HFLAG_NON_BOOTABLE
	.comm	_IDE_HFLAG_SINGLE,4,2           ; @IDE_HFLAG_SINGLE
	.no_dead_strip	_svwks_init_one
.subsections_via_symbols
