	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function periph_init
_periph_init:                           ## @periph_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_clknode_get_softc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_DEVICE_LOCK
	movq	_DCF_HAVE_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %esi
	movq	_PERLCK_ENA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_MD4
LBB0_2:
	movl	16(%rbx), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_RD4
	movq	%rbx, %rdi
	callq	_DEVICE_UNLOCK
	movl	(%rbx), %eax
	movq	_DCF_HAVE_MUX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	movl	-20(%rbp), %esi
	movq	_PERLCK_MUX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %esi
	movq	_PERLCK_MUX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	jmp	LBB0_5
LBB0_3:
	xorl	%esi, %esi
LBB0_5:
	movl	%esi, 4(%rbx)
	movq	_DCF_HAVE_DIV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.7:
	movl	12(%rbx), %ecx
	andl	-20(%rbp), %ecx
	addl	$2, %ecx
	jmp	LBB0_8
LBB0_6:
	movl	$1, %ecx
LBB0_8:
	movl	%ecx, 8(%rbx)
	movq	_DCF_IS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_DCF_IS_UART@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.9:
	movq	_PERLCK_UDIV_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, -20(%rbp)
	jne	LBB0_11
## %bb.10:
	movl	$2, 8(%rbx)
LBB0_11:
	movq	_DCF_IS_AUDIO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.12:
	movl	-20(%rbp), %eax
	movq	_PERLCK_AMUX_DIS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.13:
	cmpl	$7, %esi
	jne	LBB0_15
## %bb.14:
	movq	_PERLCK_AMUX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_PERLCK_MUX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$8, %eax
	movl	%eax, 4(%rbx)
	movl	%eax, %esi
LBB0_15:
	movq	%r14, %rdi
	callq	_clknode_init_parent_idx
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCF_HAVE_ENA,4,2               ## @DCF_HAVE_ENA
	.comm	_PERLCK_ENA_MASK,4,2            ## @PERLCK_ENA_MASK
	.comm	_DCF_HAVE_MUX,4,2               ## @DCF_HAVE_MUX
	.comm	_PERLCK_MUX_SHIFT,4,2           ## @PERLCK_MUX_SHIFT
	.comm	_PERLCK_MUX_MASK,4,2            ## @PERLCK_MUX_MASK
	.comm	_DCF_HAVE_DIV,4,2               ## @DCF_HAVE_DIV
	.comm	_DCF_IS_MASK,4,2                ## @DCF_IS_MASK
	.comm	_DCF_IS_UART,4,2                ## @DCF_IS_UART
	.comm	_PERLCK_UDIV_DIS,4,2            ## @PERLCK_UDIV_DIS
	.comm	_DCF_IS_AUDIO,4,2               ## @DCF_IS_AUDIO
	.comm	_PERLCK_AMUX_DIS,4,2            ## @PERLCK_AMUX_DIS
	.comm	_PERLCK_AMUX_SHIFT,4,2          ## @PERLCK_AMUX_SHIFT
	.no_dead_strip	_periph_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function periph_init
_periph_init:                           ; @periph_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_clknode_get_softc
	mov	x20, x0
	bl	_DEVICE_LOCK
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _DCF_HAVE_ENA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCF_HAVE_ENA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x20, #16]
Lloh3:
	adrp	x8, _PERLCK_ENA_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PERLCK_ENA_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x2
	bl	_MD4
LBB0_2:
	ldr	w1, [x20, #16]
	add	x2, sp, #12
	mov	x0, x20
	bl	_RD4
	mov	x0, x20
	bl	_DEVICE_UNLOCK
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _DCF_HAVE_MUX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DCF_HAVE_MUX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [sp, #12]
Lloh9:
	adrp	x10, _PERLCK_MUX_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PERLCK_MUX_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh12:
	adrp	x10, _PERLCK_MUX_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PERLCK_MUX_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	and	w1, w9, w10
	b	LBB0_5
LBB0_4:
	mov	w1, #0
LBB0_5:
	str	w1, [x20, #4]
Lloh15:
	adrp	x9, _DCF_HAVE_DIV@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DCF_HAVE_DIV@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w9, [sp, #12]
	ldr	w10, [x20, #12]
	and	w9, w10, w9
	add	w9, w9, #2
	b	LBB0_8
LBB0_7:
	mov	w9, #1
LBB0_8:
	str	w9, [x20, #8]
Lloh18:
	adrp	x9, _DCF_IS_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DCF_IS_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh21:
	adrp	x9, _DCF_IS_UART@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DCF_IS_UART@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.9:
	ldr	w9, [sp, #12]
Lloh24:
	adrp	x10, _PERLCK_UDIV_DIS@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PERLCK_UDIV_DIS@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_11
; %bb.10:
	mov	w9, #2
	str	w9, [x20, #8]
LBB0_11:
Lloh27:
	adrp	x9, _DCF_IS_AUDIO@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DCF_IS_AUDIO@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.12:
	ldr	w8, [sp, #12]
Lloh30:
	adrp	x9, _PERLCK_AMUX_DIS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PERLCK_AMUX_DIS@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	and	w9, w9, w8
	cmp	w9, #0
	ccmp	w1, #7, #0, eq
	b.ne	LBB0_14
; %bb.13:
Lloh33:
	adrp	x9, _PERLCK_AMUX_SHIFT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _PERLCK_AMUX_SHIFT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh36:
	adrp	x9, _PERLCK_MUX_MASK@GOTPAGE
Lloh37:
	ldr	x9, [x9, _PERLCK_MUX_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	and	w8, w8, w9
	add	w1, w8, #8
	str	w1, [x20, #4]
LBB0_14:
	mov	x0, x19
	bl	_clknode_init_parent_idx
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_DCF_HAVE_ENA,4,2               ; @DCF_HAVE_ENA
	.comm	_PERLCK_ENA_MASK,4,2            ; @PERLCK_ENA_MASK
	.comm	_DCF_HAVE_MUX,4,2               ; @DCF_HAVE_MUX
	.comm	_PERLCK_MUX_SHIFT,4,2           ; @PERLCK_MUX_SHIFT
	.comm	_PERLCK_MUX_MASK,4,2            ; @PERLCK_MUX_MASK
	.comm	_DCF_HAVE_DIV,4,2               ; @DCF_HAVE_DIV
	.comm	_DCF_IS_MASK,4,2                ; @DCF_IS_MASK
	.comm	_DCF_IS_UART,4,2                ; @DCF_IS_UART
	.comm	_PERLCK_UDIV_DIS,4,2            ; @PERLCK_UDIV_DIS
	.comm	_DCF_IS_AUDIO,4,2               ; @DCF_IS_AUDIO
	.comm	_PERLCK_AMUX_DIS,4,2            ; @PERLCK_AMUX_DIS
	.comm	_PERLCK_AMUX_SHIFT,4,2          ; @PERLCK_AMUX_SHIFT
	.no_dead_strip	_periph_init
.subsections_via_symbols
