	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm9713_set_dai_fmt
_wm9713_set_dai_fmt:                    ## @wm9713_set_dai_fmt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movq	_AC97_GPIO_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ac97_read
	andl	$65477, %eax                    ## imm = 0xFFC5
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	movl	$32768, %r15d                   ## imm = 0x8000
	addl	$-136, %ecx
	cmpl	$3, %ecx
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	orl	$26, %eax
	movl	$40960, %r15d                   ## imm = 0xA000
	jmp	LBB0_6
LBB0_5:
	orl	$18, %eax
	jmp	LBB0_6
LBB0_3:
	orl	$24, %eax
	movl	$57344, %r15d                   ## imm = 0xE000
	jmp	LBB0_6
LBB0_2:
	orl	$16, %eax
	movl	$49152, %r15d                   ## imm = 0xC000
LBB0_6:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	cmpl	$129, %ecx
	je	LBB0_11
## %bb.7:
	cmpl	$131, %ecx
	je	LBB0_10
## %bb.8:
	cmpl	$132, %ecx
	jne	LBB0_12
## %bb.9:
	orl	$192, %r15d
	jmp	LBB0_12
LBB0_11:
	orl	$64, %r15d
	jmp	LBB0_12
LBB0_10:
	orl	$128, %r15d
LBB0_12:
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	addl	$-130, %ebx
	cmpl	$5, %ebx
	ja	LBB0_18
## %bb.13:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_15:
	orl	$1, %r15d
	jmp	LBB0_18
LBB0_14:
	orl	$2, %r15d
	jmp	LBB0_18
LBB0_17:
	orl	$67, %r15d
	jmp	LBB0_18
LBB0_16:
	orl	$3, %r15d
LBB0_18:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ac97_write
	movq	_AC97_CENTER_LFE_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_ac97_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_2
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
LJTI0_1:
	.long	L0_1_set_15
	.long	L0_1_set_18
	.long	L0_1_set_18
	.long	L0_1_set_14
	.long	L0_1_set_17
	.long	L0_1_set_16
	.end_data_region
                                        ## -- End function
	.comm	_AC97_GPIO_CFG,4,2              ## @AC97_GPIO_CFG
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ## @SND_SOC_DAIFMT_INV_MASK
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ## @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_AC97_CENTER_LFE_MASTER,4,2     ## @AC97_CENTER_LFE_MASTER
	.no_dead_strip	_wm9713_set_dai_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm9713_set_dai_fmt
_wm9713_set_dai_fmt:                    ; @wm9713_set_dai_fmt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _AC97_GPIO_CFG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AC97_GPIO_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ac97_read
	mov	w8, #65477
	and	w2, w0, w8
Lloh2:
	adrp	x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w20
	sub	w8, w8, #136
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.1:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w8, #26
	orr	w2, w2, w8
	mov	w8, #40960
	b	LBB0_7
LBB0_3:
	mov	w8, #18
	orr	w2, w2, w8
LBB0_4:
	mov	w8, #32768
	b	LBB0_7
LBB0_5:
	orr	w2, w2, #0x18
	mov	w8, #57344
	b	LBB0_7
LBB0_6:
	orr	w2, w2, #0x10
	mov	w8, #49152
LBB0_7:
Lloh7:
	adrp	x9, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w9, w9, w20
	orr	w10, w8, #0x40
	orr	w11, w8, #0x80
	orr	w12, w8, #0xc0
	cmp	w9, #132
	csel	w8, w8, w12, ne
	cmp	w9, #131
	csel	w8, w11, w8, eq
	cmp	w9, #129
	csel	w21, w10, w8, eq
Lloh10:
	adrp	x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w20
	sub	w8, w8, #130
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.8:
Lloh13:
	adrp	x9, lJTI0_1@PAGE
Lloh14:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	orr	w21, w21, #0x1
	b	LBB0_13
LBB0_10:
	orr	w21, w21, #0x2
	b	LBB0_13
LBB0_11:
	mov	w8, #67
	orr	w21, w21, w8
	b	LBB0_13
LBB0_12:
	orr	w21, w21, #0x3
LBB0_13:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ac97_write
Lloh15:
	adrp	x8, _AC97_CENTER_LFE_MASTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AC97_CENTER_LFE_MASTER@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ac97_write
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
                                        ; -- End function
	.comm	_AC97_GPIO_CFG,4,2              ; @AC97_GPIO_CFG
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ; @SND_SOC_DAIFMT_INV_MASK
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ; @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_AC97_CENTER_LFE_MASTER,4,2     ; @AC97_CENTER_LFE_MASTER
	.no_dead_strip	_wm9713_set_dai_fmt
.subsections_via_symbols
