	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_chs
_to_chs:                                ## @to_chs
	.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, %rax
	movq	_sectors@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rdi, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	incl	%ecx
	movq	_heads@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	cqto
	idivq	%rdi
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movb	%dl, (%rsi)
	movl	%eax, %edx
	shrl	$2, %edx
	andl	$192, %edx
	orl	%ecx, %edx
	movb	%dl, 1(%rsi)
	movb	%al, 2(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sectors,8,3                    ## @sectors
	.comm	_heads,8,3                      ## @heads
	.no_dead_strip	_to_chs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_chs
_to_chs:                                ; @to_chs
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _sectors@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sectors@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sdiv	x9, x0, x8
	msub	w8, w9, w8, w0
	add	w8, w8, #1
Lloh3:
	adrp	x10, _heads@GOTPAGE
Lloh4:
	ldr	x10, [x10, _heads@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	sdiv	x11, x9, x10
	msub	w9, w11, w10, w9
	strb	w9, [x1]
	ubfx	x9, x11, #2, #30
	and	w9, w9, #0xc0
	orr	w8, w9, w8
	strb	w8, [x1, #1]
	strb	w11, [x1, #2]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sectors,8,3                    ; @sectors
	.comm	_heads,8,3                      ; @heads
	.no_dead_strip	_to_chs
.subsections_via_symbols
