	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function go7007_init_encoder
_go7007_init_encoder:                   ## @go7007_init_encoder
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_GO7007_AUDIO_I2S_MASTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movl	$2065, %edx                     ## imm = 0x811
	callq	_go7007_write_addr
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movl	$3089, %edx                     ## imm = 0xC11
	callq	_go7007_write_addr
LBB0_2:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.3:
	cltq
	leaq	l_switch.table.go7007_init_encoder(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	l_switch.table.go7007_init_encoder.1(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	movq	%rbx, %rdi
	movl	$15490, %esi                    ## imm = 0x3C82
	callq	_go7007_write_addr
	movq	%rbx, %rdi
	movl	$15488, %esi                    ## imm = 0x3C80
	movl	%r14d, %edx
	callq	_go7007_write_addr
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GO7007_AUDIO_I2S_MASTER,4,2    ## @GO7007_AUDIO_I2S_MASTER
	.no_dead_strip	_go7007_init_encoder
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.go7007_init_encoder
l_switch.table.go7007_init_encoder:
	.long	1                               ## 0x1
	.long	13                              ## 0xd
	.long	0                               ## 0x0

	.p2align	2                               ## @switch.table.go7007_init_encoder.1
l_switch.table.go7007_init_encoder.1:
	.long	254                             ## 0xfe
	.long	242                             ## 0xf2
	.long	223                             ## 0xdf

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function go7007_init_encoder
_go7007_init_encoder:                   ; @go7007_init_encoder
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _GO7007_AUDIO_I2S_MASTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GO7007_AUDIO_I2S_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #4096
	mov	w2, #2065
	bl	_go7007_write_addr
	mov	x0, x19
	mov	w1, #4096
	mov	w2, #3089
	bl	_go7007_write_addr
LBB0_2:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.3:
	sbfiz	x8, x8, #2, #32
Lloh3:
	adrp	x9, l_switch.table.go7007_init_encoder@PAGE
Lloh4:
	add	x9, x9, l_switch.table.go7007_init_encoder@PAGEOFF
	ldr	w2, [x9, x8]
Lloh5:
	adrp	x9, l_switch.table.go7007_init_encoder.1@PAGE
Lloh6:
	add	x9, x9, l_switch.table.go7007_init_encoder.1@PAGEOFF
	ldr	w20, [x9, x8]
	mov	x0, x19
	mov	w1, #15490
	bl	_go7007_write_addr
	mov	x0, x19
	mov	w1, #15488
	mov	x2, x20
	bl	_go7007_write_addr
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GO7007_AUDIO_I2S_MASTER,4,2    ; @GO7007_AUDIO_I2S_MASTER
	.no_dead_strip	_go7007_init_encoder
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.go7007_init_encoder
l_switch.table.go7007_init_encoder:
	.long	1                               ; 0x1
	.long	13                              ; 0xd
	.long	0                               ; 0x0

	.p2align	2                               ; @switch.table.go7007_init_encoder.1
l_switch.table.go7007_init_encoder.1:
	.long	254                             ; 0xfe
	.long	242                             ; 0xf2
	.long	223                             ; 0xdf

.subsections_via_symbols
