	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_irq_process
_adv7511_irq_process:                   ## @adv7511_irq_process
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	32(%rdi), %ebx
	xorl	%edi, %edi
	callq	_ADV7511_REG_INT
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	32(%r15), %ebx
	movl	$1, %edi
	callq	_ADV7511_REG_INT
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movl	32(%r15), %ebx
	xorl	%edi, %edi
	callq	_ADV7511_REG_INT
	movl	-28(%rbp), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	32(%r15), %ebx
	movl	$1, %edi
	callq	_ADV7511_REG_INT
	movl	-32(%rbp), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_write
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.3:
	movq	_ADV7511_INT0_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_6
## %bb.4:
	cmpq	$0, 24(%r15)
	je	LBB0_6
## %bb.5:
	leaq	16(%r15), %rdi
	callq	_schedule_work
LBB0_6:
	movq	_ADV7511_INT0_EDID_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	jne	LBB0_8
## %bb.7:
	movq	_ADV7511_INT1_DDC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -32(%rbp)
	je	LBB0_12
LBB0_8:
	movl	$1, (%r15)
	movq	8(%r15), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.9:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_wake_up_all
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7511_INT0_HPD,4,2           ## @ADV7511_INT0_HPD
	.comm	_ADV7511_INT0_EDID_READY,4,2    ## @ADV7511_INT0_EDID_READY
	.comm	_ADV7511_INT1_DDC_ERROR,4,2     ## @ADV7511_INT1_DDC_ERROR
	.no_dead_strip	_adv7511_irq_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7511_irq_process
_adv7511_irq_process:                   ; @adv7511_irq_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x0, #32]
	mov	w0, #0
	bl	_ADV7511_REG_INT
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x21
	bl	_regmap_read
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	w21, [x19, #32]
	mov	w0, #1
	bl	_ADV7511_REG_INT
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x21
	bl	_regmap_read
	tbnz	w0, #31, LBB0_11
; %bb.2:
	ldr	w21, [x19, #32]
	mov	w0, #0
	bl	_ADV7511_REG_INT
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x21
	bl	_regmap_write
	ldr	w21, [x19, #32]
	mov	w0, #1
	bl	_ADV7511_REG_INT
	mov	x1, x0
	ldr	w2, [sp, #8]
	mov	x0, x21
	bl	_regmap_write
	cbz	w20, LBB0_6
; %bb.3:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _ADV7511_INT0_HPD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADV7511_INT0_HPD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
	add	x0, x19, #16
	bl	_schedule_work
LBB0_6:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _ADV7511_INT0_EDID_READY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADV7511_INT0_EDID_READY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [sp, #8]
Lloh6:
	adrp	x9, _ADV7511_INT1_DDC_ERROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADV7511_INT1_DDC_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	add	x0, x19, #4
	bl	_wake_up_all
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7511_INT0_HPD,4,2           ; @ADV7511_INT0_HPD
	.comm	_ADV7511_INT0_EDID_READY,4,2    ; @ADV7511_INT0_EDID_READY
	.comm	_ADV7511_INT1_DDC_ERROR,4,2     ; @ADV7511_INT1_DDC_ERROR
	.no_dead_strip	_adv7511_irq_process
.subsections_via_symbols
