	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function super_mux_init
_super_mux_init:                        ## @super_mux_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_clknode_get_softc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_DEVICE_LOCK
	movl	16(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_RD4
	movq	%r15, %rdi
	callq	_DEVICE_UNLOCK
	movl	-28(%rbp), %edi
	callq	_super_mux_get_state
	movl	%eax, %ebx
	movq	_SUPER_MUX_STATE_RUN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_3
## %bb.1:
	movq	_SUPER_MUX_STATE_IDLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_panic
LBB0_3:
	movq	_SUPER_MUX_MUX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%eax, %ebx
	movl	-28(%rbp), %edx
	movl	%ebx, %ecx
	sarl	%cl, %edx
	movl	$-1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	notl	%esi
	andl	%edx, %esi
	movl	%esi, (%r15)
	movq	_SMF_HAVE_DIVIDER_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_7
## %bb.4:
	movq	_SUPER_MUX_LP_DIV2_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	jne	LBB0_7
## %bb.5:
	cmpl	8(%r15), %esi
	jne	LBB0_7
## %bb.6:
	movl	12(%r15), %esi
	movl	%esi, (%r15)
LBB0_7:
	movq	%r14, %rdi
	callq	_clknode_init_parent_idx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPER_MUX_STATE_RUN,4,2        ## @SUPER_MUX_STATE_RUN
	.comm	_SUPER_MUX_STATE_IDLE,4,2       ## @SUPER_MUX_STATE_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected super mux state: %u"

	.comm	_SUPER_MUX_MUX_WIDTH,4,2        ## @SUPER_MUX_MUX_WIDTH
	.comm	_SMF_HAVE_DIVIDER_2,4,2         ## @SMF_HAVE_DIVIDER_2
	.comm	_SUPER_MUX_LP_DIV2_BYPASS,4,2   ## @SUPER_MUX_LP_DIV2_BYPASS
	.no_dead_strip	_super_mux_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function super_mux_init
_super_mux_init:                        ; @super_mux_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_clknode_get_softc
	mov	x20, x0
	bl	_DEVICE_LOCK
	ldr	w1, [x20, #16]
	add	x2, sp, #12
	mov	x0, x20
	bl	_RD4
	mov	x0, x20
	bl	_DEVICE_UNLOCK
	ldr	w0, [sp, #12]
	bl	_super_mux_get_state
	mov	x21, x0
Lloh0:
	adrp	x8, _SUPER_MUX_STATE_RUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPER_MUX_STATE_RUN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SUPER_MUX_STATE_IDLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUPER_MUX_STATE_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_panic
LBB0_2:
Lloh8:
	adrp	x8, _SUPER_MUX_MUX_WIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SUPER_MUX_MUX_WIDTH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mul	w9, w8, w21
	ldr	w10, [sp, #12]
	asr	w9, w10, w9
	mov	w10, #-1
	lsl	w8, w10, w8
	bic	w1, w9, w8
	str	w1, [x20]
	ldr	w8, [x20, #4]
Lloh11:
	adrp	x9, _SMF_HAVE_DIVIDER_2@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SMF_HAVE_DIVIDER_2@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [sp, #12]
Lloh14:
	adrp	x9, _SUPER_MUX_LP_DIV2_BYPASS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SUPER_MUX_LP_DIV2_BYPASS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x20, #8]
	cmp	w1, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x20, #12]
	str	w1, [x20]
LBB0_6:
	mov	x0, x19
	bl	_clknode_init_parent_idx
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPER_MUX_STATE_RUN,4,2        ; @SUPER_MUX_STATE_RUN
	.comm	_SUPER_MUX_STATE_IDLE,4,2       ; @SUPER_MUX_STATE_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected super mux state: %u"

	.comm	_SUPER_MUX_MUX_WIDTH,4,2        ; @SUPER_MUX_MUX_WIDTH
	.comm	_SMF_HAVE_DIVIDER_2,4,2         ; @SMF_HAVE_DIVIDER_2
	.comm	_SUPER_MUX_LP_DIV2_BYPASS,4,2   ; @SUPER_MUX_LP_DIV2_BYPASS
	.no_dead_strip	_super_mux_init
.subsections_via_symbols
