	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_select_amcb2_transmit_clock
_store_select_amcb2_transmit_clock:     ## @store_select_amcb2_transmit_clock
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sscanf
	movq	-32(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movq	-32(%rbp), %rbx
	movq	_event_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_CLK_8kHz@GOTPCREL(%rip), %rax
	cmpb	%bl, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_CLK_16_384MHz@GOTPCREL(%rip), %rax
	cmpb	%bl, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_TLCLK_REG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testb	$-128, %bl
	jne	LBB0_4
## %bb.10:
	leal	(,%rbx,8), %eax
	movzbl	%al, %edx
	movl	$199, %esi
	jmp	LBB0_11
LBB0_2:
	movq	_TLCLK_REG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$199, %esi
	movl	$40, %edx
	callq	_SET_PORT_BITS
	movq	_TLCLK_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notb	%bl
	movzbl	%bl, %edx
	movl	$251, %esi
LBB0_11:
	callq	_SET_PORT_BITS
LBB0_12:
	movq	_event_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strnlen
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$199, %esi
	movl	$56, %edx
	callq	_SET_PORT_BITS
	leal	-128(%rbx), %eax
	cmpb	$3, %al
	ja	LBB0_12
## %bb.5:
	movzbl	%al, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_TLCLK_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$252, %esi
	movl	$2, %edx
	jmp	LBB0_11
LBB0_9:
	movq	_TLCLK_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$252, %esi
	movl	$1, %edx
	jmp	LBB0_11
LBB0_8:
	movq	_TLCLK_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$252, %esi
	movl	$3, %edx
	jmp	LBB0_11
LBB0_7:
	movq	_TLCLK_REG0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$252, %esi
	xorl	%edx, %edx
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lX"

L_.str.1:                               ## @.str.1
	.asciz	"tmp = 0x%lX\n"

	.comm	_event_lock,4,2                 ## @event_lock
	.comm	_CLK_8kHz,1,0                   ## @CLK_8kHz
	.comm	_CLK_16_384MHz,1,0              ## @CLK_16_384MHz
	.comm	_TLCLK_REG3,4,2                 ## @TLCLK_REG3
	.comm	_TLCLK_REG1,4,2                 ## @TLCLK_REG1
	.comm	_TLCLK_REG0,4,2                 ## @TLCLK_REG0
	.no_dead_strip	_store_select_amcb2_transmit_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_select_amcb2_transmit_clock
_store_select_amcb2_transmit_clock:     ; @store_select_amcb2_transmit_clock
	.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, x3
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_sscanf
	ldr	x2, [sp, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x21, [sp, #8]
Lloh4:
	adrp	x0, _event_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _event_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh6:
	adrp	x8, _CLK_8kHz@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLK_8kHz@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w21, uxtb
	b.eq	LBB0_4
; %bb.1:
Lloh8:
	adrp	x8, _CLK_16_384MHz@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CLK_16_384MHz@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w21, uxtb
	b.eq	LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _TLCLK_REG3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TLCLK_REG3@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	tbnz	w21, #7, LBB0_7
; %bb.3:
	ubfiz	w2, w21, #3, #5
	mov	w1, #199
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _TLCLK_REG3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TLCLK_REG3@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w1, #199
	mov	w2, #40
	bl	_SET_PORT_BITS
Lloh16:
	adrp	x8, _TLCLK_REG1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TLCLK_REG1@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mvn	w8, w21
	and	w2, w8, #0xff
	mov	w1, #251
LBB0_5:
	bl	_SET_PORT_BITS
LBB0_6:
Lloh19:
	adrp	x0, _event_lock@GOTPAGE
Lloh20:
	ldr	x0, [x0, _event_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	mov	x1, x19
	bl	_strnlen
	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
LBB0_7:
	mov	w1, #199
	mov	w2, #56
	bl	_SET_PORT_BITS
	and	w8, w21, #0xff
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.8:
Lloh21:
	adrp	x9, lJTI0_0@PAGE
Lloh22:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
Lloh23:
	adrp	x8, _TLCLK_REG0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TLCLK_REG0@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	w1, #252
	mov	w2, #2
	b	LBB0_5
LBB0_10:
Lloh26:
	adrp	x8, _TLCLK_REG0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TLCLK_REG0@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	w1, #252
	mov	w2, #1
	b	LBB0_5
LBB0_11:
Lloh29:
	adrp	x8, _TLCLK_REG0@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TLCLK_REG0@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	w1, #252
	mov	w2, #3
	b	LBB0_5
LBB0_12:
Lloh32:
	adrp	x8, _TLCLK_REG0@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TLCLK_REG0@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	w1, #252
	mov	w2, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lX"

l_.str.1:                               ; @.str.1
	.asciz	"tmp = 0x%lX\n"

	.comm	_event_lock,4,2                 ; @event_lock
	.comm	_CLK_8kHz,1,0                   ; @CLK_8kHz
	.comm	_CLK_16_384MHz,1,0              ; @CLK_16_384MHz
	.comm	_TLCLK_REG3,4,2                 ; @TLCLK_REG3
	.comm	_TLCLK_REG1,4,2                 ; @TLCLK_REG1
	.comm	_TLCLK_REG0,4,2                 ; @TLCLK_REG0
	.no_dead_strip	_store_select_amcb2_transmit_clock
.subsections_via_symbols
