	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aic26_set_fmt
_aic26_set_fmt:                         ## @aic26_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %rdx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_SND_SOC_DAIFMT_MASTER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	cmpl	$133, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$132, %eax
	jne	LBB0_14
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movl	$1, %eax
LBB0_4:
	movl	%eax, (%r14)
	movq	_SND_SOC_DAIFMT_FORMAT_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_11
## %bb.5:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_9:
	movq	_AIC26_DATFM_RIGHTJ@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_14:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_11:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_10:
	movq	_AIC26_DATFM_LEFTJ@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_AIC26_DATFM_I2S@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	_AIC26_DATFM_DSP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aic26_set_fmt(dai=%p, fmt==%i)\n"

	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ## @SND_SOC_DAIFMT_MASTER_MASK
L_.str.1:                               ## @.str.1
	.asciz	"bad master\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ## @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_AIC26_DATFM_I2S,4,2            ## @AIC26_DATFM_I2S
	.comm	_AIC26_DATFM_DSP,4,2            ## @AIC26_DATFM_DSP
	.comm	_AIC26_DATFM_RIGHTJ,4,2         ## @AIC26_DATFM_RIGHTJ
	.comm	_AIC26_DATFM_LEFTJ,4,2          ## @AIC26_DATFM_LEFTJ
L_.str.2:                               ## @.str.2
	.asciz	"bad format\n"

	.no_dead_strip	_aic26_set_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aic26_set_fmt
_aic26_set_fmt:                         ; @aic26_set_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x8, [x20, #8]
	stp	x0, x19, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_dbg
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, w19
	cmp	w8, #133
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #132
	b.ne	LBB0_7
; %bb.2:
	mov	w8, #0
	b	LBB0_4
LBB0_3:
	mov	w8, #1
LBB0_4:
	str	w8, [x20]
Lloh5:
	adrp	x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SND_SOC_DAIFMT_FORMAT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w19
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.5:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	w0, #0
Lloh10:
	adrp	x8, _AIC26_DATFM_RIGHTJ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AIC26_DATFM_RIGHTJ@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	ldr	x0, [x20, #8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	x0, [x20, #8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	bl	_dev_dbg
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_10:
	mov	w0, #0
Lloh19:
	adrp	x8, _AIC26_DATFM_LEFTJ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AIC26_DATFM_LEFTJ@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	w0, #0
Lloh21:
	adrp	x8, _AIC26_DATFM_I2S@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AIC26_DATFM_I2S@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
Lloh23:
	adrp	x8, _AIC26_DATFM_DSP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AIC26_DATFM_DSP@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x20, #16]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aic26_set_fmt(dai=%p, fmt==%i)\n"

	.comm	_SND_SOC_DAIFMT_MASTER_MASK,4,2 ; @SND_SOC_DAIFMT_MASTER_MASK
l_.str.1:                               ; @.str.1
	.asciz	"bad master\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SND_SOC_DAIFMT_FORMAT_MASK,4,2 ; @SND_SOC_DAIFMT_FORMAT_MASK
	.comm	_AIC26_DATFM_I2S,4,2            ; @AIC26_DATFM_I2S
	.comm	_AIC26_DATFM_DSP,4,2            ; @AIC26_DATFM_DSP
	.comm	_AIC26_DATFM_RIGHTJ,4,2         ; @AIC26_DATFM_RIGHTJ
	.comm	_AIC26_DATFM_LEFTJ,4,2          ; @AIC26_DATFM_LEFTJ
l_.str.2:                               ; @.str.2
	.asciz	"bad format\n"

	.no_dead_strip	_aic26_set_fmt
.subsections_via_symbols
