	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptspi_initTarget
_mptspi_initTarget:                     ## @mptspi_initTarget
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movq	%rdx, %r14
	cmpq	$0, (%rdx)
	jne	LBB0_16
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%r14), %rax
	movq	%rax, (%rsi)
	movq	_TYPE_PROCESSOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.3:
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_MPT_TARGET_FLAGS_SAF_TE_ISSUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_14:
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_mptspi_writeIOCPage4
	jmp	LBB0_15
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	8(%rbx), %eax
	movq	_MPT_TARGET_FLAGS_SAF_TE_ISSUED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_15
## %bb.6:
	cmpl	$50, 16(%r14)
	jl	LBB0_15
## %bb.7:
	movq	24(%r14), %rdx
	cmpb	$83, 44(%rdx)
	jne	LBB0_15
## %bb.8:
	cmpb	$65, 45(%rdx)
	jne	LBB0_15
## %bb.9:
	cmpb	$70, 46(%rdx)
	jne	LBB0_15
## %bb.10:
	cmpb	$45, 47(%rdx)
	jne	LBB0_15
## %bb.11:
	cmpb	$84, 48(%rdx)
	jne	LBB0_15
## %bb.12:
	cmpb	$69, 49(%rdx)
	jne	LBB0_15
## %bb.13:
	orl	%eax, %ecx
	movl	%ecx, 8(%rbx)
	jmp	LBB0_14
LBB0_15:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mptspi_setTargetNegoParms      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_PROCESSOR,8,3             ## @TYPE_PROCESSOR
	.comm	_MPT_TARGET_FLAGS_SAF_TE_ISSUED,4,2 ## @MPT_TARGET_FLAGS_SAF_TE_ISSUED
	.no_dead_strip	_mptspi_initTarget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptspi_initTarget
_mptspi_initTarget:                     ; @mptspi_initTarget
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x19, x2
	ldr	x8, [x2]
	cbnz	x8, LBB0_6
; %bb.2:
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x19, #8]
	str	x8, [x1]
Lloh0:
	adrp	x9, _TYPE_PROCESSOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TYPE_PROCESSOR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.3:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _MPT_TARGET_FLAGS_SAF_TE_ISSUED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPT_TARGET_FLAGS_SAF_TE_ISSUED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
LBB0_5:
	orr	w8, w9, w8
	str	w8, [x20, #8]
	ldp	w2, w1, [x20, #12]
	mov	x0, x21
	bl	_mptspi_writeIOCPage4
	b	LBB0_15
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x20, #8]
Lloh6:
	adrp	x9, _MPT_TARGET_FLAGS_SAF_TE_ISSUED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MPT_TARGET_FLAGS_SAF_TE_ISSUED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_15
; %bb.8:
	ldr	w10, [x19, #16]
	cmp	w10, #50
	b.lt	LBB0_15
; %bb.9:
	ldr	x10, [x19, #24]
	ldrb	w11, [x10, #44]
	cmp	w11, #83
	b.ne	LBB0_15
; %bb.10:
	ldrb	w11, [x10, #45]
	cmp	w11, #65
	b.ne	LBB0_15
; %bb.11:
	ldrb	w11, [x10, #46]
	cmp	w11, #70
	b.ne	LBB0_15
; %bb.12:
	ldrb	w11, [x10, #47]
	cmp	w11, #45
	b.ne	LBB0_15
; %bb.13:
	ldrb	w11, [x10, #48]
	cmp	w11, #84
	b.ne	LBB0_15
; %bb.14:
	ldrb	w10, [x10, #49]
	cmp	w10, #69
	b.eq	LBB0_5
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mptspi_setTargetNegoParms
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_PROCESSOR,8,3             ; @TYPE_PROCESSOR
	.comm	_MPT_TARGET_FLAGS_SAF_TE_ISSUED,4,2 ; @MPT_TARGET_FLAGS_SAF_TE_ISSUED
	.no_dead_strip	_mptspi_initTarget
.subsections_via_symbols
