	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_floppy_setup
_ide_floppy_setup:                      ## @ide_floppy_setup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movq	32(%rdi), %r14
	movq	_ide_floppy_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_ATA_ID_PROD@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	leaq	(%r15,%rax,4), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$20, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_IDE_AFLAG_ZIP_DRIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	_IDEFLOPPY_PC_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	movl	$64, %esi
	callq	_blk_queue_max_hw_sectors
LBB0_2:
	movq	(%r12), %rax
	leaq	(%r15,%rax,4), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$11, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	movl	$64, %esi
	callq	_blk_queue_max_hw_sectors
	movq	_IDE_AFLAG_CLIK_DRIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movq	_IDE_DFLAG_DOORLOCKING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_ide_floppy_get_capacity
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ide_proc_register_driver
	movq	_IDE_DFLAG_ATTACH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ide_floppy_callback,4,2        ## @ide_floppy_callback
	.comm	_ATA_ID_PROD,8,3                ## @ATA_ID_PROD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IOMEGA ZIP 100 ATAPI"

	.comm	_IDE_AFLAG_ZIP_DRIVE,4,2        ## @IDE_AFLAG_ZIP_DRIVE
	.comm	_IDEFLOPPY_PC_DELAY,4,2         ## @IDEFLOPPY_PC_DELAY
L_.str.1:                               ## @.str.1
	.asciz	"IOMEGA Clik!"

	.comm	_IDE_AFLAG_CLIK_DRIVE,4,2       ## @IDE_AFLAG_CLIK_DRIVE
	.comm	_IDE_DFLAG_DOORLOCKING,4,2      ## @IDE_DFLAG_DOORLOCKING
	.comm	_IDE_DFLAG_ATTACH,4,2           ## @IDE_DFLAG_ATTACH
	.no_dead_strip	_ide_floppy_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_floppy_setup
_ide_floppy_setup:                      ; @ide_floppy_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	x21, x20, [x0, #24]
Lloh0:
	adrp	x8, _ide_floppy_callback@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ide_floppy_callback@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh3:
	adrp	x22, _ATA_ID_PROD@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ATA_ID_PROD@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x0, x21, x8, lsl #2
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #20
	bl	_strncmp
	cbnz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _IDE_AFLAG_ZIP_DRIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IDE_AFLAG_ZIP_DRIVE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldp	w9, w0, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
Lloh10:
	adrp	x8, _IDEFLOPPY_PC_DELAY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IDEFLOPPY_PC_DELAY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	w1, #64
	bl	_blk_queue_max_hw_sectors
LBB0_2:
	ldr	x8, [x22]
	add	x0, x21, x8, lsl #2
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #11
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
	mov	w1, #64
	bl	_blk_queue_max_hw_sectors
Lloh15:
	adrp	x8, _IDE_AFLAG_CLIK_DRIVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IDE_AFLAG_CLIK_DRIVE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldp	w10, w9, [x19]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _IDE_DFLAG_DOORLOCKING@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IDE_DFLAG_DOORLOCKING@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	bic	w9, w10, w9
	stp	w9, w8, [x19]
LBB0_4:
	mov	x0, x19
	bl	_ide_floppy_get_capacity
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ide_proc_register_driver
Lloh21:
	adrp	x8, _IDE_DFLAG_ATTACH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IDE_DFLAG_ATTACH@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ide_floppy_callback,4,2        ; @ide_floppy_callback
	.comm	_ATA_ID_PROD,8,3                ; @ATA_ID_PROD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IOMEGA ZIP 100 ATAPI"

	.comm	_IDE_AFLAG_ZIP_DRIVE,4,2        ; @IDE_AFLAG_ZIP_DRIVE
	.comm	_IDEFLOPPY_PC_DELAY,4,2         ; @IDEFLOPPY_PC_DELAY
l_.str.1:                               ; @.str.1
	.asciz	"IOMEGA Clik!"

	.comm	_IDE_AFLAG_CLIK_DRIVE,4,2       ; @IDE_AFLAG_CLIK_DRIVE
	.comm	_IDE_DFLAG_DOORLOCKING,4,2      ; @IDE_DFLAG_DOORLOCKING
	.comm	_IDE_DFLAG_ATTACH,4,2           ; @IDE_DFLAG_ATTACH
	.no_dead_strip	_ide_floppy_setup
.subsections_via_symbols
