	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_init_port
_mtip_init_port:                        ## @mtip_init_port
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_mtip_deinit_port
	movq	16(%r14), %rax
	movq	_HOST_CAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	8(%rax), %rdi
	callq	_readl
	movq	_HOST_CAP_64@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	sarl	$31, %edi
	movq	_PORT_LST_ADDR_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	4(%r14), %edi
	sarl	$31, %edi
	movq	_PORT_FIS_ADDR_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
LBB0_2:
	movl	(%r14), %edi
	movq	_PORT_LST_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	4(%r14), %edi
	movq	_PORT_FIS_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movq	_PORT_SCR_ERR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	16(%r14), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	$-1, %edi
	callq	_writel
	incq	%rbx
	movq	16(%r14), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_PORT_IRQ_STAT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	(%rbx), %rsi
	addq	8(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	16(%r14), %rax
	movq	_HOST_IRQ_STAT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%rax), %rdi
	callq	_readl
	movq	16(%r14), %rcx
	movq	(%rbx), %rsi
	addq	8(%rcx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_DEF_PORT_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PORT_IRQ_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_CAP,8,3                   ## @HOST_CAP
	.comm	_HOST_CAP_64,4,2                ## @HOST_CAP_64
	.comm	_PORT_LST_ADDR_HI,8,3           ## @PORT_LST_ADDR_HI
	.comm	_PORT_FIS_ADDR_HI,8,3           ## @PORT_FIS_ADDR_HI
	.comm	_PORT_LST_ADDR,8,3              ## @PORT_LST_ADDR
	.comm	_PORT_FIS_ADDR,8,3              ## @PORT_FIS_ADDR
	.comm	_PORT_SCR_ERR,8,3               ## @PORT_SCR_ERR
	.comm	_PORT_IRQ_STAT,8,3              ## @PORT_IRQ_STAT
	.comm	_HOST_IRQ_STAT,8,3              ## @HOST_IRQ_STAT
	.comm	_DEF_PORT_IRQ,4,2               ## @DEF_PORT_IRQ
	.comm	_PORT_IRQ_MASK,8,3              ## @PORT_IRQ_MASK
	.no_dead_strip	_mtip_init_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_init_port
_mtip_init_port:                        ; @mtip_init_port
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_mtip_deinit_port
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x9, _HOST_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOST_CAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _HOST_CAP_64@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HOST_CAP_64@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	asr	w0, w8, #31
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _PORT_LST_ADDR_HI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PORT_LST_ADDR_HI@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19, #4]
	asr	w0, w8, #31
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _PORT_FIS_ADDR_HI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PORT_FIS_ADDR_HI@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_2:
	ldr	w0, [x19]
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _PORT_LST_ADDR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PORT_LST_ADDR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _PORT_FIS_ADDR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PORT_FIS_ADDR@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x20, _PORT_SCR_ERR@GOTPAGE
Lloh19:
	ldr	x20, [x20, _PORT_SCR_ERR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x1, [x8, x20, lsl #3]
	mov	w0, #-1
	bl	_writel
	add	x20, x20, #1
	ldr	x8, [x19, #16]
	ldrsw	x8, [x8]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x20, _PORT_IRQ_STAT@GOTPAGE
Lloh21:
	ldr	x20, [x20, _PORT_IRQ_STAT@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
Lloh22:
	adrp	x20, _HOST_IRQ_STAT@GOTPAGE
Lloh23:
	ldr	x20, [x20, _HOST_IRQ_STAT@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
Lloh24:
	adrp	x8, _DEF_PORT_IRQ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DEF_PORT_IRQ@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh27:
	adrp	x9, _PORT_IRQ_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PORT_IRQ_MASK@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_CAP,8,3                   ; @HOST_CAP
	.comm	_HOST_CAP_64,4,2                ; @HOST_CAP_64
	.comm	_PORT_LST_ADDR_HI,8,3           ; @PORT_LST_ADDR_HI
	.comm	_PORT_FIS_ADDR_HI,8,3           ; @PORT_FIS_ADDR_HI
	.comm	_PORT_LST_ADDR,8,3              ; @PORT_LST_ADDR
	.comm	_PORT_FIS_ADDR,8,3              ; @PORT_FIS_ADDR
	.comm	_PORT_SCR_ERR,8,3               ; @PORT_SCR_ERR
	.comm	_PORT_IRQ_STAT,8,3              ; @PORT_IRQ_STAT
	.comm	_HOST_IRQ_STAT,8,3              ; @HOST_IRQ_STAT
	.comm	_DEF_PORT_IRQ,4,2               ; @DEF_PORT_IRQ
	.comm	_PORT_IRQ_MASK,8,3              ; @PORT_IRQ_MASK
	.no_dead_strip	_mtip_init_port
.subsections_via_symbols
