	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fw_get_timeout
_fw_get_timeout:                        ## @fw_get_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	$0, -32(%rbp)
	movl	$0, -20(%rbp)
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movq	_FW_TIMEOUT_USER_SPEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	%r8d, 8(%rbx)
	jmp	LBB0_8
LBB0_2:
	movl	%ecx, %eax
	movl	%edx, %r10d
	movq	(%rbx), %rcx
	movq	_FW_TIMEOUT_NO_PROBE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
LBB0_8:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_WRITE_BUFFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subq	$8, %rsp
	leaq	-32(%rbp), %r11
	leaq	-20(%rbp), %r14
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r11
	pushq	%r14
	pushq	$0
	pushq	$10000                          ## imm = 0x2710
	pushq	%rax
	pushq	%r10
	pushq	$1
	callq	_scsigetopcodes
	addq	$64, %rsp
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	cmpl	$16, -20(%rbp)
	jb	LBB0_8
## %bb.5:
	movq	-32(%rbp), %rax
	movq	_RSO_ONE_SUP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movq	_RSO_ONE_SUP_NOT_SUP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_8
## %bb.6:
	movl	4(%rax), %edi
	callq	_scsi_2btoul
	movq	-32(%rbp), %rcx
	cltq
	movl	32(%rcx,%rax,4), %edi
	callq	_scsi_4btoul
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 8(%rbx)
	movq	_FW_TIMEOUT_DEV_REPORTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_TIMEOUT_USER_SPEC,8,3       ## @FW_TIMEOUT_USER_SPEC
	.comm	_FW_TIMEOUT_NO_PROBE,8,3        ## @FW_TIMEOUT_NO_PROBE
	.comm	_WRITE_BUFFER,4,2               ## @WRITE_BUFFER
	.comm	_RSO_ONE_SUP_MASK,4,2           ## @RSO_ONE_SUP_MASK
	.comm	_RSO_ONE_SUP_NOT_SUP,4,2        ## @RSO_ONE_SUP_NOT_SUP
	.comm	_FW_TIMEOUT_DEV_REPORTED,8,3    ## @FW_TIMEOUT_DEV_REPORTED
	.no_dead_strip	_fw_get_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fw_get_timeout
_fw_get_timeout:                        ; @fw_get_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	stur	xzr, [x29, #-24]
	stur	wzr, [x29, #-28]
	cbz	w4, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FW_TIMEOUT_USER_SPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_TIMEOUT_USER_SPEC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19]
	str	w4, [x19, #8]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _FW_TIMEOUT_NO_PROBE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FW_TIMEOUT_NO_PROBE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.3:
	mov	x7, x2
Lloh6:
	adrp	x8, _WRITE_BUFFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WRITE_BUFFER@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	sub	x8, x29, #24
	sub	x9, x29, #28
	stp	x9, x8, [sp, #16]
	mov	w8, #10000
	stur	x8, [sp, #4]
	str	w3, [sp]
	mov	w1, #1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	mov	w6, #1
	bl	_scsigetopcodes
	ldur	w8, [x29, #-28]
	cmp	w0, #0
	ccmp	w8, #16, #0, eq
	b.lo	LBB0_7
; %bb.4:
	ldur	x8, [x29, #-24]
	ldr	w9, [x8]
Lloh9:
	adrp	x10, _RSO_ONE_SUP_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RSO_ONE_SUP_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh12:
	adrp	x10, _RSO_ONE_SUP_NOT_SUP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RSO_ONE_SUP_NOT_SUP@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_7
; %bb.5:
	ldr	w0, [x8, #4]
	bl	_scsi_2btoul
	ldur	x8, [x29, #-24]
	add	x8, x8, w0, sxtw #2
	ldr	w0, [x8, #32]
	bl	_scsi_4btoul
	cbz	w0, LBB0_7
; %bb.6:
	mov	w8, #1000
	mul	w8, w0, w8
	str	w8, [x19, #8]
Lloh15:
	adrp	x8, _FW_TIMEOUT_DEV_REPORTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FW_TIMEOUT_DEV_REPORTED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_TIMEOUT_USER_SPEC,8,3       ; @FW_TIMEOUT_USER_SPEC
	.comm	_FW_TIMEOUT_NO_PROBE,8,3        ; @FW_TIMEOUT_NO_PROBE
	.comm	_WRITE_BUFFER,4,2               ; @WRITE_BUFFER
	.comm	_RSO_ONE_SUP_MASK,4,2           ; @RSO_ONE_SUP_MASK
	.comm	_RSO_ONE_SUP_NOT_SUP,4,2        ; @RSO_ONE_SUP_NOT_SUP
	.comm	_FW_TIMEOUT_DEV_REPORTED,8,3    ; @FW_TIMEOUT_DEV_REPORTED
	.no_dead_strip	_fw_get_timeout
.subsections_via_symbols
