	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psif_open
_psif_open:                             ## @psif_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movl	4(%r14), %edi
	callq	_clk_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_CR_TXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSIF_BIT
	movl	%eax, %r12d
	movq	_CR_RXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSIF_BIT
	orl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_psif_writel
	movq	_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_RXRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSIF_BIT
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_psif_writel
	movl	$1, (%r14)
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR,4,2                         ## @CR
	.comm	_CR_TXEN,4,2                    ## @CR_TXEN
	.comm	_CR_RXEN,4,2                    ## @CR_RXEN
	.comm	_IER,4,2                        ## @IER
	.comm	_RXRDY,4,2                      ## @RXRDY
	.no_dead_strip	_psif_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psif_open
_psif_open:                             ; @psif_open
	.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
	ldr	x19, [x0]
	ldr	w0, [x19, #4]
	bl	_clk_enable
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _CR_TXEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CR_TXEN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PSIF_BIT
	mov	x22, x0
Lloh6:
	adrp	x8, _CR_RXEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CR_RXEN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_PSIF_BIT
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	bl	_psif_writel
Lloh9:
	adrp	x8, _IER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IER@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _RXRDY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RXRDY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_PSIF_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_psif_writel
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CR,4,2                         ; @CR
	.comm	_CR_TXEN,4,2                    ; @CR_TXEN
	.comm	_CR_RXEN,4,2                    ; @CR_RXEN
	.comm	_IER,4,2                        ; @IER
	.comm	_RXRDY,4,2                      ; @RXRDY
	.no_dead_strip	_psif_open
.subsections_via_symbols
