	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_set_sector
_ide_set_sector:                        ## @ide_set_sector
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r9d
	testb	$64, %r9b
	jne	LBB0_1
## %bb.4:
	movl	32(%rdi), %r8d
	movl	28(%rdi), %ecx
	imull	%r8d, %ecx
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	shrl	$8, %ecx
	movl	%ecx, 4(%rdi)
	movl	%eax, 8(%rdi)
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%r8d
	andl	$240, %r9d
	andl	$15, %eax
	orl	%r9d, %eax
	movl	%eax, (%rdi)
	incl	%edx
	movl	%edx, 12(%rdi)
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 36(%rdi)
	je	LBB0_2
## %bb.3:
	movl	%esi, 12(%rdi)
	movl	%esi, %eax
	sarl	$8, %eax
	movl	%eax, 8(%rdi)
	movl	%esi, %eax
	sarl	$16, %eax
	movl	%eax, 4(%rdi)
	sarl	$24, %esi
	movl	%esi, 16(%rdi)
	popq	%rbp
	retq
LBB0_2:
	andl	$240, %r9d
	movl	%esi, %eax
	sarl	$24, %eax
	orl	%r9d, %eax
	movl	%eax, (%rdi)
	movl	%esi, %eax
	sarl	$16, %eax
	movl	%eax, 4(%rdi)
	movl	%esi, %eax
	sarl	$8, %eax
	movl	%eax, 8(%rdi)
	movl	%esi, 12(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ide_set_sector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ide_set_sector
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ide_set_sector:                        ; @ide_set_sector
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	tbnz	w8, #6, LBB0_2
; %bb.1:
	ldp	w9, w10, [x0, #28]
	mul	w9, w10, w9
	sdiv	w11, w1, w9
	msub	w9, w11, w9, w1
	lsr	w12, w11, #8
	and	w8, w8, #0xf0
	udiv	w13, w9, w10
	bfxil	w8, w13, #0, #4
	stp	w8, w12, [x0]
	msub	w8, w13, w10, w9
	add	w8, w8, #1
	stp	w11, w8, [x0, #8]
	ret
LBB0_2:
	ldr	w9, [x0, #36]
	cbz	w9, LBB0_4
; %bb.3:
	dup.2s	v0, w1
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v1
	stur	d0, [x0, #4]
	asr	w8, w1, #24
	stp	w1, w8, [x0, #12]
	ret
LBB0_4:
	and	w8, w8, #0xf0
	orr	w8, w8, w1, asr #24
	dup.2s	v0, w1
	str	w8, [x0]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v1
	stur	d0, [x0, #4]
	str	w1, [x0, #12]
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ide_set_sector
.subsections_via_symbols
