	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_sata_process_read_log
_fsl_sata_process_read_log:             ## @fsl_sata_process_read_log
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	$0, 24(%rdi)
	movq	(%rsi), %r15
	movq	_CAM_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.1:
	testb	$-128, (%r15)
	jne	LBB0_12
## %bb.2:
	movq	_FSL_SATA_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.3:
	xorl	%r13d, %r13d
	movq	_XPT_ATA_IO@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_CAM_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%rsi), %eax
	movq	_CAM_REQUEUE_REQ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%rsi)
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_fsl_sata_done
	movq	8(%r12), %rax
	movq	$0, (%rax,%r13,8)
	decl	4(%r12)
	movq	_FSL_SATA_MAX_SLOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_18
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	(%rcx,%r13,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rsi), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %eax
	andl	$31, %eax
	cmpq	%rax, %r13
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r15), %eax
	movl	%eax, 16(%rsi)
	movl	12(%r15), %eax
	movl	%eax, 20(%rsi)
	movl	16(%r15), %eax
	movl	%eax, 24(%rsi)
	movl	20(%r15), %eax
	movl	%eax, 28(%rsi)
	movl	24(%r15), %eax
	movl	%eax, 32(%rsi)
	movl	28(%r15), %eax
	movl	%eax, 36(%rsi)
	movl	32(%r15), %eax
	movl	%eax, 40(%rsi)
	movl	36(%r15), %eax
	movl	%eax, 44(%rsi)
	movl	40(%r15), %eax
	movl	%eax, 48(%rsi)
	movl	48(%r15), %eax
	movl	%eax, 52(%rsi)
	movl	52(%r15), %eax
	movl	%eax, 56(%rsi)
	jmp	LBB0_9
LBB0_11:
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
LBB0_12:
	movq	_FSL_SATA_MAX_SLOTS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.13:
	xorl	%ebx, %ebx
	movq	_XPT_ATA_IO@GOTPCREL(%rip), %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	(%rcx,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rsi), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	callq	_fsl_sata_done
	movq	8(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	decl	4(%r12)
	movl	(%r15), %eax
	jmp	LBB0_17
LBB0_18:
	movq	(%r14), %rdi
	movq	_M_FSL_SATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	%r14, %rdi
	callq	_xpt_free_ccb
	movl	(%r12), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xpt_release_simq               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CAM_STATUS_MASK,4,2            ## @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ## @CAM_REQ_CMP
	.comm	_FSL_SATA_MAX_SLOTS,4,2         ## @FSL_SATA_MAX_SLOTS
	.comm	_XPT_ATA_IO,8,3                 ## @XPT_ATA_IO
	.comm	_CAM_REQUEUE_REQ,4,2            ## @CAM_REQUEUE_REQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error while READ LOG EXT\n"

	.comm	_M_FSL_SATA,4,2                 ## @M_FSL_SATA
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_fsl_sata_process_read_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_sata_process_read_log
_fsl_sata_process_read_log:             ; @fsl_sata_process_read_log
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	str	xzr, [x0, #24]
	ldr	x21, [x1]
Lloh0:
	adrp	x22, _CAM_STATUS_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CAM_STATUS_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w8, w8, w21
Lloh2:
	adrp	x9, _CAM_REQ_CMP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CAM_REQ_CMP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.1:
	ldrb	w8, [x21]
	tbnz	w8, #7, LBB0_12
; %bb.2:
Lloh5:
	adrp	x23, _FSL_SATA_MAX_SLOTS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _FSL_SATA_MAX_SLOTS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.3:
	mov	x24, #0
Lloh7:
	adrp	x25, _XPT_ATA_IO@GOTPAGE
Lloh8:
	ldr	x25, [x25, _XPT_ATA_IO@GOTPAGEOFF]
Lloh9:
	adrp	x26, _CAM_REQUEUE_REQ@GOTPAGE
Lloh10:
	ldr	x26, [x26, _CAM_REQUEUE_REQ@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x1, #8]
	bic	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w9, w8
	str	w8, [x1, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_fsl_sata_done
	ldr	x8, [x19, #8]
	str	xzr, [x8, x24, lsl #3]
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	ldr	w8, [x23]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x1, [x9, x24, lsl #3]
	cbz	x1, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x1]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x21]
	and	x8, x8, #0x1f
	cmp	x24, x8
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x21, #8]
	str	w8, [x1, #16]
	ldr	w8, [x21, #12]
	str	w8, [x1, #20]
	ldr	w8, [x21, #16]
	str	w8, [x1, #24]
	ldr	w8, [x21, #20]
	str	w8, [x1, #28]
	ldr	w8, [x21, #24]
	str	w8, [x1, #32]
	ldr	w8, [x21, #28]
	str	w8, [x1, #36]
	ldr	w8, [x21, #32]
	str	w8, [x1, #40]
	ldr	w8, [x21, #36]
	str	w8, [x1, #44]
	ldr	w8, [x21, #40]
	str	w8, [x1, #48]
	ldr	w8, [x21, #48]
	str	w8, [x1, #52]
	ldr	w8, [x21, #52]
	str	w8, [x1, #56]
	b	LBB0_5
LBB0_11:
	ldr	w0, [x19, #16]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
LBB0_12:
Lloh13:
	adrp	x21, _FSL_SATA_MAX_SLOTS@GOTPAGE
Lloh14:
	ldr	x21, [x21, _FSL_SATA_MAX_SLOTS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.13:
	mov	x22, #0
Lloh15:
	adrp	x23, _XPT_ATA_IO@GOTPAGE
Lloh16:
	ldr	x23, [x23, _XPT_ATA_IO@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x1, [x9, x22, lsl #3]
	cbz	x1, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [x1]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x19
	bl	_fsl_sata_done
	ldr	x8, [x19, #8]
	str	xzr, [x8, x22, lsl #3]
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	ldr	w8, [x21]
	b	LBB0_14
LBB0_18:
	ldr	x0, [x20]
Lloh17:
	adrp	x8, _M_FSL_SATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_FSL_SATA@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_free
	mov	x0, x20
	bl	_xpt_free_ccb
	ldr	w0, [x19]
Lloh20:
	adrp	x8, _TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_xpt_release_simq
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CAM_STATUS_MASK,4,2            ; @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ; @CAM_REQ_CMP
	.comm	_FSL_SATA_MAX_SLOTS,4,2         ; @FSL_SATA_MAX_SLOTS
	.comm	_XPT_ATA_IO,8,3                 ; @XPT_ATA_IO
	.comm	_CAM_REQUEUE_REQ,4,2            ; @CAM_REQUEUE_REQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error while READ LOG EXT\n"

	.comm	_M_FSL_SATA,4,2                 ; @M_FSL_SATA
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_fsl_sata_process_read_log
.subsections_via_symbols
