	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7511_hpd
_adv7511_hpd:                           ## @adv7511_hpd
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_ADV7511_REG_INT
	leaq	-36(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_ADV7511_INT0_HPD@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, -36(%rbp)
	je	LBB0_3
## %bb.2:
	movl	(%r15), %ebx
	xorl	%edi, %edi
	callq	_ADV7511_REG_INT
	movl	(%r12), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	$1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV7511_INT0_HPD,4,2           ## @ADV7511_INT0_HPD
	.no_dead_strip	_adv7511_hpd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7511_hpd
_adv7511_hpd:                           ; @adv7511_hpd
	.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, x0
	ldr	w20, [x0]
	mov	w0, #0
	bl	_ADV7511_REG_INT
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x20, _ADV7511_INT0_HPD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ADV7511_INT0_HPD@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w19, [x19]
	mov	w0, #0
	bl	_ADV7511_REG_INT
	mov	x1, x0
	ldr	w2, [x20]
	mov	x0, x19
	bl	_regmap_write
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV7511_INT0_HPD,4,2           ; @ADV7511_INT0_HPD
	.no_dead_strip	_adv7511_hpd
.subsections_via_symbols
