	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_irqreg
_init_irqreg:                           ## @init_irqreg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_BT848_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1048575, %edi                  ## imm = 0xFFFFF
	callq	_btwrite
	movq	_bttv_tvcards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_2
## %bb.1:
	movq	_BT848_INT_I2CDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	cmpq	$0, 8(%rbx)
	movl	$0, %edi
	je	LBB0_4
## %bb.3:
	movq	_BT848_INT_GPINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_4:
	orl	(%rbx), %edi
	movq	_BT848_INT_SCERR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_fdsr@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_BT848_INT_FDSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%eax, %edi
	movq	_BT848_INT_RISCI@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_BT848_INT_OCERR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_BT848_INT_FMTCHG@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_BT848_INT_HLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_BT848_INT_I2CDONE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
LBB0_7:
	movq	_BT848_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_btwrite                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BT848_INT_STAT,4,2             ## @BT848_INT_STAT
	.comm	_bttv_tvcards,8,3               ## @bttv_tvcards
	.comm	_BT848_INT_I2CDONE,4,2          ## @BT848_INT_I2CDONE
	.comm	_BT848_INT_MASK,4,2             ## @BT848_INT_MASK
	.comm	_BT848_INT_GPINT,4,2            ## @BT848_INT_GPINT
	.comm	_BT848_INT_SCERR,4,2            ## @BT848_INT_SCERR
	.comm	_fdsr,8,3                       ## @fdsr
	.comm	_BT848_INT_FDSR,4,2             ## @BT848_INT_FDSR
	.comm	_BT848_INT_RISCI,4,2            ## @BT848_INT_RISCI
	.comm	_BT848_INT_OCERR,4,2            ## @BT848_INT_OCERR
	.comm	_BT848_INT_FMTCHG,4,2           ## @BT848_INT_FMTCHG
	.comm	_BT848_INT_HLOCK,4,2            ## @BT848_INT_HLOCK
	.no_dead_strip	_init_irqreg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_irqreg
_init_irqreg:                           ; @init_irqreg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _BT848_INT_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT848_INT_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #1048575
	bl	_btwrite
Lloh3:
	adrp	x8, _bttv_tvcards@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bttv_tvcards@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _BT848_INT_I2CDONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT848_INT_I2CDONE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
Lloh9:
	adrp	x10, _BT848_INT_GPINT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BT848_INT_GPINT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _BT848_INT_SCERR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BT848_INT_SCERR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _fdsr@GOTPAGE
Lloh16:
	ldr	x9, [x9, _fdsr@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _BT848_INT_FDSR@GOTPAGE
Lloh19:
	ldr	x10, [x10, _BT848_INT_FDSR@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _BT848_INT_RISCI@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BT848_INT_RISCI@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _BT848_INT_OCERR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BT848_INT_OCERR@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _BT848_INT_FMTCHG@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BT848_INT_FMTCHG@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _BT848_INT_HLOCK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BT848_INT_HLOCK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _BT848_INT_I2CDONE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _BT848_INT_I2CDONE@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w0, w8, w9
LBB0_3:
Lloh36:
	adrp	x8, _BT848_INT_MASK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BT848_INT_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_btwrite
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_BT848_INT_STAT,4,2             ; @BT848_INT_STAT
	.comm	_bttv_tvcards,8,3               ; @bttv_tvcards
	.comm	_BT848_INT_I2CDONE,4,2          ; @BT848_INT_I2CDONE
	.comm	_BT848_INT_MASK,4,2             ; @BT848_INT_MASK
	.comm	_BT848_INT_GPINT,4,2            ; @BT848_INT_GPINT
	.comm	_BT848_INT_SCERR,4,2            ; @BT848_INT_SCERR
	.comm	_fdsr,8,3                       ; @fdsr
	.comm	_BT848_INT_FDSR,4,2             ; @BT848_INT_FDSR
	.comm	_BT848_INT_RISCI,4,2            ; @BT848_INT_RISCI
	.comm	_BT848_INT_OCERR,4,2            ; @BT848_INT_OCERR
	.comm	_BT848_INT_FMTCHG,4,2           ; @BT848_INT_FMTCHG
	.comm	_BT848_INT_HLOCK,4,2            ; @BT848_INT_HLOCK
	.no_dead_strip	_init_irqreg
.subsections_via_symbols
