	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_floppy_create_format_unit_cmd
_ide_floppy_create_format_unit_cmd:     ## @ide_floppy_create_format_unit_cmd
	.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
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_ide_init_pc
	movq	_GPCMD_FORMAT_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	$23, 4(%rcx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	xorl	%eax, %eax
	testb	$1, %r13b
	sete	%al
	shll	$5, %eax
	orl	$130, %eax
	movl	%eax, 4(%rbx)
	movl	$8, 12(%rbx)
	movl	%r12d, %edi
	callq	_cpu_to_be32
	leaq	16(%rbx), %rsi
	movl	%eax, %edi
	callq	_put_unaligned
	movl	%r15d, %edi
	callq	_cpu_to_be32
	addq	$32, %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_put_unaligned
	movl	$12, 8(%r14)
	movq	_PC_FLAG_WRITING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPCMD_FORMAT_UNIT,4,2          ## @GPCMD_FORMAT_UNIT
	.comm	_PC_FLAG_WRITING,4,2            ## @PC_FLAG_WRITING
	.no_dead_strip	_ide_floppy_create_format_unit_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_floppy_create_format_unit_cmd
_ide_floppy_create_format_unit_cmd:     ; @ide_floppy_create_format_unit_cmd
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_ide_init_pc
Lloh0:
	adrp	x8, _GPCMD_FORMAT_UNIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPCMD_FORMAT_UNIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x23]
	mov	w10, #23
	stp	w8, w10, [x9]
	mov	w24, #12
	mov	x0, x22
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	tst	w19, #0x1
	mov	w8, #130
	mov	w9, #162
	csel	w8, w9, w8, eq
	str	w8, [x22, #4]
	mov	w8, #8
	str	w8, [x22, #12]
	mov	x0, x21
	bl	_cpu_to_be32
	add	x1, x22, #16
	bl	_put_unaligned
	mov	x0, x20
	bl	_cpu_to_be32
	add	x1, x22, #32
	bl	_put_unaligned
Lloh3:
	adrp	x8, _PC_FLAG_WRITING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PC_FLAG_WRITING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x23, #12]
	orr	w8, w9, w8
	stp	w24, w8, [x23, #8]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GPCMD_FORMAT_UNIT,4,2          ; @GPCMD_FORMAT_UNIT
	.comm	_PC_FLAG_WRITING,4,2            ; @PC_FLAG_WRITING
	.no_dead_strip	_ide_floppy_create_format_unit_cmd
.subsections_via_symbols
