	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssm2602_set_dai_fmt
_ssm2602_set_dai_fmt:                   ## @ssm2602_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
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rdi
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	cmpl	$137, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$138, %eax
	jne	LBB0_14
## %bb.3:
	movl	$64, %edx
	jmp	LBB0_4
LBB0_1:
	xorl	%edx, %edx
LBB0_4:
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_14
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	orl	$1, %edx
	jmp	LBB0_10
LBB0_9:
	orl	$2, %edx
	jmp	LBB0_10
LBB0_8:
	orl	$3, %edx
	jmp	LBB0_10
LBB0_7:
	orl	$19, %edx
LBB0_10:
	movq	_SND_SOC_DAIFMT_INV_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	addl	$-129, %esi
	cmpl	$4, %esi
	ja	LBB0_14
## %bb.11:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_13:
	orl	$16, %edx
	jmp	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_12:
	orl	$128, %edx
	jmp	LBB0_16
LBB0_15:
	orl	$144, %edx
LBB0_16:
	movq	_SSM2602_IFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ssm2602_write
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.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_10
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_6
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
.set L0_1_set_16, LBB0_16-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
LJTI0_1:
	.long	L0_1_set_16
	.long	L0_1_set_13
	.long	L0_1_set_14
	.long	L0_1_set_12
	.long	L0_1_set_15
	.end_data_region
                                        ## -- End function
	.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
	.comm	_SSM2602_IFACE,4,2              ## @SSM2602_IFACE
	.no_dead_strip	_ssm2602_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 ssm2602_set_dai_fmt
_ssm2602_set_dai_fmt:                   ; @ssm2602_set_dai_fmt
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SND_SOC_DAIFMT_MASTER_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
	cmp	w8, #137
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #138
	b.ne	LBB0_13
; %bb.2:
	mov	w2, #64
	b	LBB0_4
LBB0_3:
	mov	w2, #0
LBB0_4:
Lloh3:
	adrp	x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w1
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_13
; %bb.5:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	orr	w2, w2, #0x1
	b	LBB0_10
LBB0_7:
	orr	w2, w2, #0x2
	b	LBB0_10
LBB0_8:
	orr	w2, w2, #0x3
	b	LBB0_10
LBB0_9:
	mov	w8, #19
	orr	w2, w2, w8
LBB0_10:
Lloh8:
	adrp	x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SND_SOC_DAIFMT_INV_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w1
	sub	w8, w8, #129
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.11:
Lloh11:
	adrp	x9, lJTI0_1@PAGE
Lloh12:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_12
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_12:
	orr	w2, w2, #0x10
	b	LBB0_16
LBB0_13:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_14:
	orr	w2, w2, #0x80
	b	LBB0_16
LBB0_15:
	mov	w8, #144
	orr	w2, w2, w8
LBB0_16:
Lloh16:
	adrp	x8, _SSM2602_IFACE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSM2602_IFACE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_ssm2602_write
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
lJTI0_1:
	.byte	(LBB0_16-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_13-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_15-LBB0_12)>>2
                                        ; -- End function
	.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
	.comm	_SSM2602_IFACE,4,2              ; @SSM2602_IFACE
	.no_dead_strip	_ssm2602_set_dai_fmt
.subsections_via_symbols
