	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scsi_da_bios_params            ## -- Begin function scsi_da_bios_params
	.p2align	4, 0x90
_scsi_da_bios_params:                   ## @scsi_da_bios_params
	.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), %rsi
	xorl	%ecx, %ecx
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movl	$1048576, %eax                  ## imm = 0x100000
	xorl	%edx, %edx
	idivq	%rsi
	movq	%rax, %rsi
	testl	%esi, %esi
	jne	LBB0_5
	jmp	LBB0_11
LBB0_2:
	movl	$1048576, %eax                  ## imm = 0x100000
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %esi
	testl	%esi, %esi
	je	LBB0_11
LBB0_5:
	movl	8(%rdi), %ecx
	cmpl	$1052819776, %ecx               ## imm = 0x3EC0C140
	jl	LBB0_7
## %bb.6:
	movl	$255, 12(%rdi)
	movl	$255, %eax
	movl	$255, %esi
	jmp	LBB0_10
LBB0_7:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	$1025, %eax                     ## imm = 0x401
	jl	LBB0_9
## %bb.8:
	movl	$255, 12(%rdi)
	movl	$255, %esi
	movl	$63, %eax
	jmp	LBB0_10
LBB0_9:
	movl	$64, 12(%rdi)
	movl	$64, %esi
	movl	$32, %eax
LBB0_10:
	movl	%eax, 16(%rdi)
	imull	%eax, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, 20(%rdi)
	movl	$1, %ecx
LBB0_11:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scsi_da_bios_params            ; -- Begin function scsi_da_bios_params
	.p2align	2
_scsi_da_bios_params:                   ; @scsi_da_bios_params
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	w9, #1048576
	sdiv	x9, x9, x8
	cbz	w9, LBB0_4
; %bb.2:
	ldr	w8, [x0, #8]
	mov	w10, #49472
	movk	w10, #16064, lsl #16
	cmp	w8, w10
	b.lt	LBB0_5
; %bb.3:
	mov	w9, #255
	str	w9, [x0, #12]
	mov	w10, #255
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	ret
LBB0_5:
	sdiv	w9, w8, w9
	cmp	w9, #1025
	b.lt	LBB0_7
; %bb.6:
	mov	w10, #255
	str	w10, [x0, #12]
	mov	w9, #63
	b	LBB0_8
LBB0_7:
	mov	w10, #64
	str	w10, [x0, #12]
	mov	w9, #32
LBB0_8:
	mul	w10, w9, w10
	sdiv	w8, w8, w10
	stp	w9, w8, [x0, #16]
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
