	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun8i_ui_layer_update_formats
_sun8i_ui_layer_update_formats:         ## @sun8i_ui_layer_update_formats
	.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	%edx, %r14d
	movq	%rdi, %r13
	movq	(%rcx), %rbx
	callq	_sun8i_channel_base
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_sun8i_mixer_format_info
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$0, 4(%rax)
	je	LBB0_2
## %bb.3:
	movl	(%rax), %r12d
	movq	_SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movl	(%r13), %ebx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_SUN8I_MIXER_CHAN_UI_LAYER_ATTR
	movq	_SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %ecx
	callq	_regmap_update_bits
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid format\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_OFFSET,4,2 ## @SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_OFFSET
	.comm	_SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_MASK,4,2 ## @SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_MASK
	.no_dead_strip	_sun8i_ui_layer_update_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun8i_ui_layer_update_formats
_sun8i_ui_layer_update_formats:         ; @sun8i_ui_layer_update_formats
	.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	x19, x2
	mov	x20, x0
	ldr	x22, [x3]
	bl	_sun8i_channel_base
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_sun8i_mixer_format_info
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w22, w8, w9
	ldr	w20, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_SUN8I_MIXER_CHAN_UI_LAYER_ATTR
	mov	x1, x0
Lloh3:
	adrp	x8, _SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x22
	bl	_regmap_update_bits
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid format\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_OFFSET,4,2 ; @SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_OFFSET
	.comm	_SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_MASK,4,2 ; @SUN8I_MIXER_CHAN_UI_LAYER_ATTR_FBFMT_MASK
	.no_dead_strip	_sun8i_ui_layer_update_formats
.subsections_via_symbols
