	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_dc_atomic_commit
_atmel_hlcdc_dc_atomic_commit:          ## @atmel_hlcdc_dc_atomic_commit
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %r14
	callq	_drm_atomic_helper_prepare_planes
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	_atmel_hlcdc_dc_atomic_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_INIT_WORK
	movq	%r13, 16(%r12)
	movq	%r15, 8(%r12)
	leaq	8(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	xorl	%esi, %esi
	cmpl	$0, 4(%r14)
	sete	%sil
	movl	8(%r14), %edi
	callq	_wait_event_interruptible_locked
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_drm_atomic_helper_cleanup_planes
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, 4(%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_drm_atomic_helper_swap_state
	shrq	$63, %rax
	movl	%eax, %edi
	callq	_BUG_ON
	movq	%r15, %rdi
	callq	_drm_atomic_state_get
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	movq	%r12, %rsi
	callq	_queue_work
	jmp	LBB0_9
LBB0_6:
	movq	%r12, %rdi
	callq	_atmel_hlcdc_dc_atomic_complete
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_atmel_hlcdc_dc_atomic_work,4,2 ## @atmel_hlcdc_dc_atomic_work
	.no_dead_strip	_atmel_hlcdc_dc_atomic_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_hlcdc_dc_atomic_commit
_atmel_hlcdc_dc_atomic_commit:          ; @atmel_hlcdc_dc_atomic_commit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x25, [x0]
	bl	_drm_atomic_helper_prepare_planes
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh3:
	adrp	x8, _atmel_hlcdc_dc_atomic_work@GOTPAGE
Lloh4:
	ldr	x8, [x8, _atmel_hlcdc_dc_atomic_work@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	stp	x19, x21, [x22, #8]
	add	x24, x25, #8
	mov	x0, x24
	bl	_spin_lock
	ldp	w8, w0, [x25, #4]
	cmp	w8, #0
	cset	w1, eq
	bl	_wait_event_interruptible_locked
	cbz	w0, LBB0_7
; %bb.3:
	mov	x23, x0
	mov	x0, x24
	bl	_spin_unlock
	mov	x0, x22
	bl	_kfree
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	bl	_drm_atomic_helper_cleanup_planes
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w8, #1
	str	w8, [x25, #4]
	mov	x0, x24
	bl	_spin_unlock
	mov	x0, x19
	mov	w1, #0
	bl	_drm_atomic_helper_swap_state
	lsr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BUG_ON
	mov	x0, x19
	bl	_drm_atomic_state_get
	cbz	w20, LBB0_9
; %bb.8:
	ldr	w0, [x25]
	mov	x1, x22
	bl	_queue_work
	mov	w23, #0
	b	LBB0_6
LBB0_9:
	mov	x0, x22
	bl	_atmel_hlcdc_dc_atomic_complete
	mov	w23, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_atmel_hlcdc_dc_atomic_work,4,2 ; @atmel_hlcdc_dc_atomic_work
	.no_dead_strip	_atmel_hlcdc_dc_atomic_commit
.subsections_via_symbols
