	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_disk_init_mult_count
_ide_disk_init_mult_count:              ## @ide_disk_init_mult_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_ATA_ID_MAX_MULTSECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%rcx,%rax,4), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$4, %eax
	jb	LBB0_3
## %bb.2:
	orl	$256, %eax                      ## imm = 0x100
	movq	_ATA_ID_MULTSECT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	jmp	LBB0_4
LBB0_3:
	movq	_ATA_ID_MULTSECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$-512, %eax                     ## imm = 0xFE00
	andl	(%rcx,%rdx,4), %eax
LBB0_4:
	movl	%eax, (%rcx,%rdx,4)
	andl	$255, %eax
	movl	%eax, 8(%rdi)
	je	LBB0_6
## %bb.5:
	movq	_IDE_SFLAG_SET_MULTMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rdi)
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_ID_MAX_MULTSECT,8,3        ## @ATA_ID_MAX_MULTSECT
	.comm	_ATA_ID_MULTSECT,8,3            ## @ATA_ID_MULTSECT
	.comm	_IDE_SFLAG_SET_MULTMODE,4,2     ## @IDE_SFLAG_SET_MULTMODE
	.no_dead_strip	_ide_disk_init_mult_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_disk_init_mult_count
_ide_disk_init_mult_count:              ; @ide_disk_init_mult_count
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ATA_ID_MAX_MULTSECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATA_ID_MAX_MULTSECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldrb	w9, [x8, x9]
	cbz	w9, LBB0_6
; %bb.1:
	cmp	w9, #4
	b.lo	LBB0_3
; %bb.2:
	orr	w9, w9, #0x100
Lloh3:
	adrp	x10, _ATA_ID_MULTSECT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ATA_ID_MULTSECT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x9, _ATA_ID_MULTSECT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_ID_MULTSECT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsl	x10, x9, #2
	ldr	w9, [x8, x10]
	and	w9, w9, #0xfffffe00
	str	w9, [x8, x10]
LBB0_4:
	ands	w8, w9, #0xff
	str	w8, [x0, #8]
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _IDE_SFLAG_SET_MULTMODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDE_SFLAG_SET_MULTMODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x0, #12]
	orr	w8, w9, w8
	str	w8, [x0, #12]
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_ID_MAX_MULTSECT,8,3        ; @ATA_ID_MAX_MULTSECT
	.comm	_ATA_ID_MULTSECT,8,3            ; @ATA_ID_MULTSECT
	.comm	_IDE_SFLAG_SET_MULTMODE,4,2     ; @IDE_SFLAG_SET_MULTMODE
	.no_dead_strip	_ide_disk_init_mult_count
.subsections_via_symbols
