	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_init_disk                  ## -- Begin function ide_init_disk
	.p2align	4, 0x90
_ide_init_disk:                         ## @ide_init_disk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rax
	movl	(%rsi), %edx
	andl	$1, %edx
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rdi)
	movq	_PARTN_BITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %esi
	shll	%cl, %esi
	movl	%esi, (%rdi)
	movl	8(%rdi), %edi
	movq	_MAX_DRIVES@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	imull	(%rax), %ecx
	leal	(%rdx,%rcx), %eax
	addl	$97, %eax
	movsbl	%al, %edx
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movl	4(%r14), %eax
	movl	%eax, 4(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARTN_BITS,4,2                 ## @PARTN_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hd%c"

	.comm	_MAX_DRIVES,1,0                 ## @MAX_DRIVES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_init_disk                  ; -- Begin function ide_init_disk
	.p2align	2
_ide_init_disk:                         ; @ide_init_disk
	.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, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	ldr	w9, [x1]
	and	w9, w9, #0x1
	ldr	w10, [x8, #4]
Lloh0:
	adrp	x11, _PARTN_BITS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _PARTN_BITS@GOTPAGEOFF]
	str	w10, [x0, #12]
Lloh2:
	ldr	w10, [x11]
	lsl	w10, w9, w10
	str	w10, [x0]
	ldr	w0, [x0, #8]
	ldrb	w8, [x8]
Lloh3:
	adrp	x10, _MAX_DRIVES@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_DRIVES@GOTPAGEOFF]
	ldrb	w10, [x10]
	madd	w8, w10, w8, w9
	add	w8, w8, #97
	sxtb	w2, w8
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	ldr	w8, [x19, #4]
	str	w8, [x20, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PARTN_BITS,4,2                 ; @PARTN_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hd%c"

	.comm	_MAX_DRIVES,1,0                 ; @MAX_DRIVES
.subsections_via_symbols
