	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serverworks_csb_filter
_serverworks_csb_filter:                ## @serverworks_csb_filter
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ATA_ID_PROD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	incl	%r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	(%r14), %rax
	movq	_ATA_DEV_ATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movl	8(%r14), %edi
	movq	_ATA_ID_PROD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	movl	%r12d, %ecx
	callq	_ata_id_c_string
	movq	_csb_bad_ata100@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	_ATA_SHIFT_UDMA@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$224, %r12d
	shll	%cl, %r12d
	notl	%r12d
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rsi
	callq	_strcmp
	negl	%eax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	%r12d, %eax
	cltq
	andq	%rax, %r13
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ata_bmdma_mode_filter
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_bmdma_mode_filter          ## TAILCALL
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_ID_PROD_LEN,4,2            ## @ATA_ID_PROD_LEN
	.comm	_ATA_DEV_ATA,8,3                ## @ATA_DEV_ATA
	.comm	_ATA_ID_PROD,4,2                ## @ATA_ID_PROD
	.comm	_csb_bad_ata100,8,3             ## @csb_bad_ata100
	.comm	_ATA_SHIFT_UDMA,4,2             ## @ATA_SHIFT_UDMA
	.no_dead_strip	_serverworks_csb_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serverworks_csb_filter
_serverworks_csb_filter:                ; @serverworks_csb_filter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _ATA_ID_PROD_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_ID_PROD_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w3, w8, #1
	mov	x9, x3
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x3, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _ATA_DEV_ATA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATA_DEV_ATA@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	w0, [x20, #8]
Lloh11:
	adrp	x8, _ATA_ID_PROD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATA_ID_PROD@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ata_id_c_string
Lloh14:
	adrp	x8, _csb_bad_ata100@GOTPAGE
Lloh15:
	ldr	x8, [x8, _csb_bad_ata100@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.2:
Lloh17:
	adrp	x9, _ATA_SHIFT_UDMA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATA_SHIFT_UDMA@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	mov	w10, #224
	lsl	w9, w10, w9
	mvn	w22, w9
	add	x23, x8, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_strcmp
	cmp	w0, #0
	csinv	w8, w22, wzr, eq
	sxtw	x8, w8
	and	x19, x19, x8
	ldr	x0, [x23], #8
	cbnz	x0, LBB0_3
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_ata_bmdma_mode_filter
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.5:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ata_bmdma_mode_filter
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_ID_PROD_LEN,4,2            ; @ATA_ID_PROD_LEN
	.comm	_ATA_DEV_ATA,8,3                ; @ATA_DEV_ATA
	.comm	_ATA_ID_PROD,4,2                ; @ATA_ID_PROD
	.comm	_csb_bad_ata100,8,3             ; @csb_bad_ata100
	.comm	_ATA_SHIFT_UDMA,4,2             ; @ATA_SHIFT_UDMA
	.no_dead_strip	_serverworks_csb_filter
.subsections_via_symbols
