	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sata_oxnas_postreset
_sata_oxnas_postreset:                  ## @sata_oxnas_postreset
	.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, %r15
	movq	(%rdi), %r12
	movq	8(%r12), %rax
	movq	8(%rax), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTK
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ata_std_postreset
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	$12, %esi
	movl	$196611, %edx                   ## imm = 0x30003
	callq	_sata_oxnas_link_write
	cmpl	$2, (%rbx)
	jl	LBB0_2
## %bb.1:
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	movl	$12, %esi
	movl	$196611, %edx                   ## imm = 0x30003
	callq	_sata_oxnas_link_write
LBB0_2:
	movl	(%r14), %eax
	movq	_ATA_DEV_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.3:
	cmpl	%eax, 4(%r14)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_5:
	movq	_ATA_MAX_DEVICES@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	leaq	L_.str.2(%rip), %rdi
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	xorl	%ebx, %ebx
	movq	_ATA_DEV_ATA@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movl	%eax, %ecx
	addq	$8, %rbx
	cmpq	%rcx, %r14
	jae	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	(%rdi,%rbx), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	%rbx, %rdi
	callq	_sata_oxnas_dev_config
	movl	(%r15), %eax
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTK                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

	.comm	_ATA_DEV_NONE,4,2               ## @ATA_DEV_NONE
L_.str.1:                               ## @.str.1
	.asciz	"EXIT, no device\n"

	.comm	_ATA_MAX_DEVICES,4,2            ## @ATA_MAX_DEVICES
	.comm	_ATA_DEV_ATA,8,3                ## @ATA_DEV_ATA
L_.str.2:                               ## @.str.2
	.asciz	"EXIT\n"

	.no_dead_strip	_sata_oxnas_postreset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sata_oxnas_postreset
_sata_oxnas_postreset:                  ; @sata_oxnas_postreset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x8, [x21, #8]
	ldr	x22, [x8, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
	mov	x0, x20
	mov	x1, x19
	bl	_ata_std_postreset
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	w1, #12
	mov	w2, #196611
	bl	_sata_oxnas_link_write
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	mov	w1, #12
	mov	w2, #196611
	bl	_sata_oxnas_link_write
LBB0_2:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _ATA_DEV_NONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATA_DEV_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	ldr	w9, [x19, #4]
	cmp	w9, w8
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x19, l_.str.1@PAGE
Lloh6:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh7:
	adrp	x20, _ATA_MAX_DEVICES@GOTPAGE
Lloh8:
	ldr	x20, [x20, _ATA_MAX_DEVICES@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.6:
	mov	x22, #0
	mov	x23, #0
Lloh9:
	adrp	x24, _ATA_DEV_ATA@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ATA_DEV_ATA@GOTPAGEOFF]
Lloh11:
	adrp	x19, l_.str.2@PAGE
Lloh12:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	add	x22, x22, #8
	cmp	x23, w8, uxtw
	b.hs	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	add	x0, x9, x22
	ldr	x9, [x0]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_sata_oxnas_dev_config
	ldr	w8, [x20]
	b	LBB0_7
LBB0_10:
Lloh13:
	adrp	x19, l_.str.2@PAGE
Lloh14:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_DPRINTK
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

	.comm	_ATA_DEV_NONE,4,2               ; @ATA_DEV_NONE
l_.str.1:                               ; @.str.1
	.asciz	"EXIT, no device\n"

	.comm	_ATA_MAX_DEVICES,4,2            ; @ATA_MAX_DEVICES
	.comm	_ATA_DEV_ATA,8,3                ; @ATA_DEV_ATA
l_.str.2:                               ; @.str.2
	.asciz	"EXIT\n"

	.no_dead_strip	_sata_oxnas_postreset
.subsections_via_symbols
