	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad9389b_set_isr
_ad9389b_set_isr:                       ## @ad9389b_set_isr
	.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
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_MASK_AD9389B_HPD_INT@GOTPCREL(%rip), %rax
	movq	_MASK_AD9389B_MSEN_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_ad9389b_have_hotplug
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MASK_AD9389B_EDID_RDY_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
LBB0_4:
	movl	$-100, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$148, %esi
	movl	%r15d, %edx
	callq	_ad9389b_wr
	movq	%r14, %rdi
	movl	$148, %esi
	callq	_ad9389b_rd
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%r15d, %eax
	jne	LBB0_5
LBB0_7:
	cmpl	%r15d, %eax
	je	LBB0_8
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_err                       ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MASK_AD9389B_HPD_INT,4,2       ## @MASK_AD9389B_HPD_INT
	.comm	_MASK_AD9389B_MSEN_INT,4,2      ## @MASK_AD9389B_MSEN_INT
	.comm	_MASK_AD9389B_EDID_RDY_INT,4,2  ## @MASK_AD9389B_EDID_RDY_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not set interrupts: hw failure?\n"

	.no_dead_strip	_ad9389b_set_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad9389b_set_isr
_ad9389b_set_isr:                       ; @ad9389b_set_isr
	.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, x0
	cbz	w1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MASK_AD9389B_HPD_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MASK_AD9389B_HPD_INT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MASK_AD9389B_MSEN_INT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MASK_AD9389B_MSEN_INT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
	mov	x0, x19
	bl	_ad9389b_have_hotplug
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _MASK_AD9389B_EDID_RDY_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MASK_AD9389B_EDID_RDY_INT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	w21, #-100
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #148
	mov	x2, x20
	bl	_ad9389b_wr
	mov	x0, x19
	mov	w1, #148
	bl	_ad9389b_rd
	cbz	w21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	cmp	w0, w20
	b.ne	LBB0_5
LBB0_7:
	cmp	w0, w20
	b.eq	LBB0_9
; %bb.8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_v4l2_err
LBB0_9:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MASK_AD9389B_HPD_INT,4,2       ; @MASK_AD9389B_HPD_INT
	.comm	_MASK_AD9389B_MSEN_INT,4,2      ; @MASK_AD9389B_MSEN_INT
	.comm	_MASK_AD9389B_EDID_RDY_INT,4,2  ; @MASK_AD9389B_EDID_RDY_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not set interrupts: hw failure?\n"

	.no_dead_strip	_ad9389b_set_isr
.subsections_via_symbols
