	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_floppy_get_sfrp_bit
_ide_floppy_get_sfrp_bit:               ## @ide_floppy_get_sfrp_bit
	.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
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %r12
	movq	_IDE_AFLAG_SRFP@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, (%rdi)
	movq	%rsi, %rbx
	movq	_IDEFLOPPY_CAPABILITIES_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ide_floppy_create_mode_sense_cmd
	movq	_PC_FLAG_SUPPRESS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movl	(%r12), %esi
	movl	(%rbx), %r8d
	leaq	-128(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_ide_queue_pc_tail
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	testb	$64, -88(%rbp)
	je	LBB0_3
## %bb.2:
	movl	(%r15), %ecx
	orl	%ecx, (%r14)
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_AFLAG_SRFP,4,2             ## @IDE_AFLAG_SRFP
	.comm	_IDEFLOPPY_CAPABILITIES_PAGE,4,2 ## @IDEFLOPPY_CAPABILITIES_PAGE
	.comm	_PC_FLAG_SUPPRESS_ERROR,4,2     ## @PC_FLAG_SUPPRESS_ERROR
	.no_dead_strip	_ide_floppy_get_sfrp_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_floppy_get_sfrp_bit
_ide_floppy_get_sfrp_bit:               ; @ide_floppy_get_sfrp_bit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x22, [x0, #8]
Lloh3:
	adrp	x21, _IDE_AFLAG_SRFP@GOTPAGE
Lloh4:
	ldr	x21, [x21, _IDE_AFLAG_SRFP@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
Lloh5:
	adrp	x8, _IDEFLOPPY_CAPABILITIES_PAGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IDEFLOPPY_CAPABILITIES_PAGE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ide_floppy_create_mode_sense_cmd
Lloh8:
	adrp	x8, _PC_FLAG_SUPPRESS_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PC_FLAG_SUPPRESS_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldp	w4, w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	ldr	w1, [x22]
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_ide_queue_pc_tail
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	ldrb	w8, [sp, #48]
	tbnz	w8, #6, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_AFLAG_SRFP,4,2             ; @IDE_AFLAG_SRFP
	.comm	_IDEFLOPPY_CAPABILITIES_PAGE,4,2 ; @IDEFLOPPY_CAPABILITIES_PAGE
	.comm	_PC_FLAG_SUPPRESS_ERROR,4,2     ; @PC_FLAG_SUPPRESS_ERROR
	.no_dead_strip	_ide_floppy_get_sfrp_bit
.subsections_via_symbols
