	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function super_mux_set_mux
_super_mux_set_mux:                     ## @super_mux_set_mux
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_clknode_get_softc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_DEVICE_LOCK
	movl	16(%rbx), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_RD4
	movl	-44(%rbp), %edi
	callq	_super_mux_get_state
	movl	%eax, %r15d
	movq	_SUPER_MUX_STATE_RUN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_3
## %bb.1:
	movq	_SUPER_MUX_STATE_IDLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_panic
LBB0_3:
	movq	_SUPER_MUX_MUX_WIDTH@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movl	%r14d, (%rbx)
	movq	_SMF_HAVE_DIVIDER_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_9
## %bb.4:
	movl	12(%rbx), %eax
	cmpl	%r14d, 8(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_SUPER_MUX_LP_DIV2_BYPASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_6:
	cmpl	%r14d, %eax
	jne	LBB0_9
## %bb.7:
	movq	_SUPER_MUX_LP_DIV2_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_8:
	movl	%edx, -44(%rbp)
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_WR4
	movl	16(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_RD4
LBB0_9:
	decl	%r15d
	imull	%r15d, %r12d
	movb	(%r13), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	notl	%eax
	andl	-44(%rbp), %eax
	shll	%cl, %r14d
	orl	%eax, %r14d
	movl	%r14d, -44(%rbp)
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_WR4
	movl	16(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_RD4
	movq	%rbx, %rdi
	callq	_DEVICE_UNLOCK
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function super_mux_set_mux
_super_mux_set_mux:                     ; @super_mux_set_mux
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	bl	_clknode_get_softc
	mov	x19, x0
	bl	_DEVICE_LOCK
	ldr	w1, [x19, #16]
	add	x2, sp, #12
	mov	x0, x19
	bl	_RD4
	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	x22, _SUPER_MUX_MUX_WIDTH@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SUPER_MUX_MUX_WIDTH@GOTPAGEOFF]
	ldr	w23, [x22]
	str	w20, [x19]
	ldr	w8, [x19, #4]
Lloh10:
	adrp	x9, _SMF_HAVE_DIVIDER_2@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SMF_HAVE_DIVIDER_2@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
	ldp	w9, w8, [x19, #8]
	cmp	w9, w20
	b.ne	LBB0_5
; %bb.4:
Lloh13:
	adrp	x9, _SUPER_MUX_LP_DIV2_BYPASS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SUPER_MUX_LP_DIV2_BYPASS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w10, [sp, #12]
	bic	w2, w10, w9
	mov	x20, x8
	b	LBB0_7
LBB0_5:
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.6:
Lloh16:
	adrp	x8, _SUPER_MUX_LP_DIV2_BYPASS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SUPER_MUX_LP_DIV2_BYPASS@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
LBB0_7:
	str	w2, [sp, #12]
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_WR4
	ldr	w1, [x19, #16]
	add	x2, sp, #8
	mov	x0, x19
	bl	_RD4
LBB0_8:
	sub	w8, w21, #1
	mul	w8, w23, w8
	ldr	w9, [x22]
	mov	w10, #-1
	lsl	w9, w10, w9
	mvn	w9, w9
	lsl	w9, w9, w8
	ldr	w10, [sp, #12]
	bic	w9, w10, w9
	lsl	w8, w20, w8
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_WR4
	ldr	w1, [x19, #16]
	add	x2, sp, #8
	mov	x0, x19
	bl	_RD4
	mov	x0, x19
	bl	_DEVICE_UNLOCK
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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_set_mux
.subsections_via_symbols
