	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_special_op
_do_special_op:                         ## @do_special_op
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movq	$0, 24(%rbx)
	movl	16(%rbx), %esi
	movq	_ATA_CMD_RESTORE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_recal_intr@GOTPCREL(%rip), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_hd_out
	movq	_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_2:
	cmpl	$17, (%rbx)
	jl	LBB0_4
## %bb.3:
	movq	(%rsi), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_hd_end_request_cur
LBB0_4:
	movq	$0, 8(%rbx)
	movl	$1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_CMD_RESTORE,4,2            ## @ATA_CMD_RESTORE
	.comm	_recal_intr,4,2                 ## @recal_intr
	.comm	_reset,4,2                      ## @reset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cannot handle device with more than 16 heads - giving up\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_do_special_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_special_op
_do_special_op:                         ; @do_special_op
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	str	xzr, [x19, #24]
	ldr	w1, [x19, #16]
Lloh0:
	adrp	x8, _ATA_CMD_RESTORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_CMD_RESTORE@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x6, _recal_intr@GOTPAGE
Lloh4:
	ldr	x6, [x6, _recal_intr@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_hd_out
Lloh5:
	adrp	x8, _reset@GOTPAGE
Lloh6:
	ldr	x8, [x8, _reset@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #17
	b.lt	LBB0_4
; %bb.3:
	ldr	x8, [x1]
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_hd_end_request_cur
LBB0_4:
	str	xzr, [x19, #8]
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_CMD_RESTORE,4,2            ; @ATA_CMD_RESTORE
	.comm	_recal_intr,4,2                 ; @recal_intr
	.comm	_reset,4,2                      ; @reset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cannot handle device with more than 16 heads - giving up\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_do_special_op
.subsections_via_symbols
