	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8523_set_dai_fmt
_wm8523_set_dai_fmt:                    ## @wm8523_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movq	_WM8523_AIF_CTRL1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movq	_WM8523_BCLK_INV_MASK@GOTPCREL(%rip), %rcx
	movq	_WM8523_LRCLK_INV_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_WM8523_FMT_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_WM8523_AIF_MSTR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$137, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$138, %eax
	jne	LBB0_13
## %bb.2:
	movq	_WM8523_AIF_MSTR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_3:
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_13
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	orl	$1, %edx
	jmp	LBB0_9
LBB0_8:
	orl	$2, %edx
	jmp	LBB0_9
LBB0_7:
	orl	$35, %edx
	jmp	LBB0_9
LBB0_6:
	orl	$3, %edx
LBB0_9:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	addl	$-129, %ebx
	cmpl	$4, %ebx
	ja	LBB0_13
## %bb.10:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_12:
	movq	_WM8523_LRCLK_INV@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_15
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_11:
	movq	_WM8523_BCLK_INV@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	jmp	LBB0_15
LBB0_14:
	movq	_WM8523_BCLK_INV@GOTPCREL(%rip), %rax
	movq	_WM8523_LRCLK_INV@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
LBB0_15:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_snd_soc_write
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_5
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
LJTI0_1:
	.long	L0_1_set_15
	.long	L0_1_set_12
	.long	L0_1_set_13
	.long	L0_1_set_11
	.long	L0_1_set_14
	.end_data_region
                                        ## -- End function
	.comm	_WM8523_AIF_CTRL1,4,2           ## @WM8523_AIF_CTRL1
	.comm	_WM8523_BCLK_INV_MASK,4,2       ## @WM8523_BCLK_INV_MASK
	.comm	_WM8523_LRCLK_INV_MASK,4,2      ## @WM8523_LRCLK_INV_MASK
	.comm	_WM8523_FMT_MASK,4,2            ## @WM8523_FMT_MASK
	.comm	_WM8523_AIF_MSTR_MASK,4,2       ## @WM8523_AIF_MSTR_MASK
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_WM8523_AIF_MSTR,4,2            ## @WM8523_AIF_MSTR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ## @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ## @SND_SOC_DAIFMT_INV_MASK
	.comm	_WM8523_BCLK_INV,4,2            ## @WM8523_BCLK_INV
	.comm	_WM8523_LRCLK_INV,4,2           ## @WM8523_LRCLK_INV
	.no_dead_strip	_wm8523_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 wm8523_set_dai_fmt
_wm8523_set_dai_fmt:                    ; @wm8523_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	x21, _WM8523_AIF_CTRL1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WM8523_AIF_CTRL1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_soc_read
Lloh2:
	adrp	x8, _WM8523_BCLK_INV_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM8523_BCLK_INV_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _WM8523_LRCLK_INV_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WM8523_LRCLK_INV_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _WM8523_FMT_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WM8523_FMT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _WM8523_AIF_MSTR_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WM8523_AIF_MSTR_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w2, w0, w8
Lloh14:
	adrp	x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w20
	cmp	w8, #137
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #138
	b.ne	LBB0_12
; %bb.2:
Lloh17:
	adrp	x8, _WM8523_AIF_MSTR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM8523_AIF_MSTR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w2, w8, w2
LBB0_3:
Lloh20:
	adrp	x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	and	w8, w8, w20
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_12
; %bb.4:
Lloh23:
	adrp	x9, lJTI0_0@PAGE
Lloh24:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	orr	w2, w2, #0x1
	b	LBB0_9
LBB0_6:
	orr	w2, w2, #0x2
	b	LBB0_9
LBB0_7:
	mov	w8, #35
	orr	w2, w2, w8
	b	LBB0_9
LBB0_8:
	orr	w2, w2, #0x3
LBB0_9:
Lloh25:
	adrp	x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	and	w8, w8, w20
	sub	w8, w8, #129
	cmp	w8, #4
	b.hi	LBB0_12
; %bb.10:
Lloh28:
	adrp	x9, lJTI0_1@PAGE
Lloh29:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
Lloh30:
	adrp	x8, _WM8523_LRCLK_INV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WM8523_LRCLK_INV@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_13:
Lloh35:
	adrp	x8, _WM8523_BCLK_INV@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WM8523_BCLK_INV@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	orr	w2, w8, w2
	b	LBB0_16
LBB0_15:
Lloh37:
	adrp	x8, _WM8523_BCLK_INV@GOTPAGE
Lloh38:
	ldr	x8, [x8, _WM8523_BCLK_INV@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _WM8523_LRCLK_INV@GOTPAGE
Lloh41:
	ldr	x9, [x9, _WM8523_LRCLK_INV@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w2
	orr	w2, w8, w9
LBB0_16:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_soc_write
	mov	w0, #0
LBB0_17:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
lJTI0_1:
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
                                        ; -- End function
	.comm	_WM8523_AIF_CTRL1,4,2           ; @WM8523_AIF_CTRL1
	.comm	_WM8523_BCLK_INV_MASK,4,2       ; @WM8523_BCLK_INV_MASK
	.comm	_WM8523_LRCLK_INV_MASK,4,2      ; @WM8523_LRCLK_INV_MASK
	.comm	_WM8523_FMT_MASK,4,2            ; @WM8523_FMT_MASK
	.comm	_WM8523_AIF_MSTR_MASK,4,2       ; @WM8523_AIF_MSTR_MASK
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
	.comm	_WM8523_AIF_MSTR,4,2            ; @WM8523_AIF_MSTR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ; @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_SND_SOC_DAIFMT_INV_MASK,4,2    ; @SND_SOC_DAIFMT_INV_MASK
	.comm	_WM8523_BCLK_INV,4,2            ; @WM8523_BCLK_INV
	.comm	_WM8523_LRCLK_INV,4,2           ; @WM8523_LRCLK_INV
	.no_dead_strip	_wm8523_set_dai_fmt
.subsections_via_symbols
