	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DAC960_getgeo
_DAC960_getgeo:                         ## @DAC960_getgeo
	.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	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	_DAC960_V1_Controller@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_2
## %bb.1:
	movl	16(%rax), %edx
	movl	%edx, (%rsi)
	movl	20(%rax), %edi
	movl	%edi, 4(%rsi)
	movq	24(%rax), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	imull	%edx, %edi
	jmp	LBB0_7
LBB0_2:
	movq	8(%rax), %rdx
	movslq	%ecx, %rcx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %edx
	cmpl	$129, %edx
	je	LBB0_3
## %bb.4:
	cmpl	$128, %edx
	jne	LBB0_8
## %bb.5:
	movl	$16065, %edi                    ## imm = 0x3EC1
	movl	$63, %eax
	movl	$255, %edx
	jmp	LBB0_6
LBB0_3:
	movl	$4096, %edi                     ## imm = 0x1000
	movl	$32, %eax
	movl	$128, %edx
LBB0_6:
	movl	%edx, (%rsi)
	movl	%eax, 4(%rsi)
	movl	4(%rcx), %eax
LBB0_7:
	cltd
	idivl	%edi
	movl	%eax, 8(%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_DAC960_Error
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAC960_V1_Controller,8,3       ## @DAC960_V1_Controller
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal Logical Device Geometry %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_DAC960_getgeo
.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 DAC960_getgeo
lCPI0_0:
	.long	128                             ; 0x80
	.long	32                              ; 0x20
lCPI0_1:
	.long	255                             ; 0xff
	.long	63                              ; 0x3f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_DAC960_getgeo:                         ; @DAC960_getgeo
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldp	x9, x10, [x8]
	ldr	x8, [x10]
	ldr	x10, [x8]
Lloh0:
	adrp	x11, _DAC960_V1_Controller@GOTPAGE
Lloh1:
	ldr	x11, [x11, _DAC960_V1_Controller@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	w10, w11, [x8, #16]
	stp	w10, w11, [x1]
	ldr	x8, [x8, #24]
	sbfiz	x9, x9, #2, #32
	ldr	w8, [x8, x9]
	mul	w9, w11, w10
	sdiv	w8, w8, w9
	b	LBB0_7
LBB0_2:
	ldr	x10, [x8, #8]
	sbfiz	x9, x9, #3, #32
	ldr	x9, [x10, x9]
	ldr	w2, [x9]
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w2, #128
	b.ne	LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, lCPI0_1@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	mov	w8, #16065
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	w8, #4096
LBB0_6:
	mov	w0, #0
	str	d0, [x1]
	ldr	w9, [x9, #4]
	sdiv	w8, w9, w8
LBB0_7:
	str	w8, [x1, #8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_DAC960_Error
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DAC960_V1_Controller,8,3       ; @DAC960_V1_Controller
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal Logical Device Geometry %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_DAC960_getgeo
.subsections_via_symbols
