	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8753_pcm_set_dai_fmt
_wm8753_pcm_set_dai_fmt:                ## @wm8753_pcm_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	%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, %ebx
	movq	(%rdi), %r14
	movq	_WM8753_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wm8753_read_reg_cache
	movl	%eax, %r12d
	andl	$287, %r12d                     ## imm = 0x11F
	movq	_WM8753_IOCTL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_wm8753_read_reg_cache
	movl	%eax, %r15d
	andl	$349, %r15d                     ## imm = 0x15D
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$137, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$138, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$139, %eax
	jne	LBB0_15
## %bb.3:
	orl	$2, %r15d
LBB0_4:
	orl	$64, %r12d
LBB0_5:
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_15
## %bb.6:
	movl	$73, %ecx
	btl	%eax, %ecx
	jae	LBB0_7
## %bb.11:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	addl	$-129, %ebx
	cmpl	$4, %ebx
	ja	LBB0_15
## %bb.12:
	movl	%r12d, %edx
	andl	$-17, %edx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_14:
	orl	$16, %r12d
	jmp	LBB0_17
LBB0_7:
	movl	$384, %ecx                      ## imm = 0x180
	btl	%eax, %ecx
	jae	LBB0_15
## %bb.8:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	cmpl	$129, %ebx
	je	LBB0_17
## %bb.9:
	cmpl	$132, %ebx
	jne	LBB0_15
## %bb.10:
	orl	$128, %r12d
	jmp	LBB0_17
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_13:
	orl	$128, %edx
	jmp	LBB0_18
LBB0_16:
	orl	$144, %r12d
LBB0_17:
	movl	%r12d, %edx
LBB0_18:
	movq	_WM8753_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wm8753_write
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_wm8753_write
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_WM8753_PCM,4,2                 ## @WM8753_PCM
	.comm	_WM8753_IOCTL,4,2               ## @WM8753_IOCTL
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
	.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
	.no_dead_strip	_wm8753_pcm_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 wm8753_pcm_set_dai_fmt
_wm8753_pcm_set_dai_fmt:                ; @wm8753_pcm_set_dai_fmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _WM8753_PCM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WM8753_PCM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wm8753_read_reg_cache
	mov	w8, #287
	and	w24, w0, w8
Lloh2:
	adrp	x23, _WM8753_IOCTL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WM8753_IOCTL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_wm8753_read_reg_cache
	mov	w8, #349
	and	w20, w0, w8
Lloh4:
	adrp	x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w8, #137
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #138
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #139
	b.ne	LBB0_14
; %bb.3:
	orr	w20, w20, #0x2
LBB0_4:
	orr	w24, w24, #0x40
LBB0_5:
Lloh7:
	adrp	x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w8, w8, w21
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_14
; %bb.6:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #73
	tst	w8, w9
	b.eq	LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w21
	sub	w8, w8, #129
	cmp	w8, #4
	b.hi	LBB0_14
; %bb.8:
	and	w2, w24, #0xffffffef
Lloh13:
	adrp	x9, lJTI0_0@PAGE
Lloh14:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	orr	w2, w24, #0x10
	b	LBB0_18
LBB0_10:
	tst	w8, #0x180
	b.eq	LBB0_14
; %bb.11:
Lloh15:
	adrp	x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w21
	cmp	w8, #129
	b.eq	LBB0_17
; %bb.12:
	cmp	w8, #132
	b.ne	LBB0_14
; %bb.13:
	orr	w2, w24, #0x80
	b	LBB0_18
LBB0_14:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_15:
	orr	w2, w2, #0x80
	b	LBB0_18
LBB0_16:
	mov	w8, #144
	orr	w2, w24, w8
	b	LBB0_18
LBB0_17:
	mov	x2, x24
LBB0_18:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_wm8753_write
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_wm8753_write
	mov	w0, #0
LBB0_19:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_18-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_14-LBB0_9)>>2
	.byte	(LBB0_15-LBB0_9)>>2
	.byte	(LBB0_16-LBB0_9)>>2
                                        ; -- End function
	.comm	_WM8753_PCM,4,2                 ; @WM8753_PCM
	.comm	_WM8753_IOCTL,4,2               ; @WM8753_IOCTL
	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
	.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
	.no_dead_strip	_wm8753_pcm_set_dai_fmt
.subsections_via_symbols
