	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_bt848
_init_bt848:                            ## @init_bt848
	.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, %rbx
	movq	_bttv_tvcards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	40(%rdi), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_9
## %bb.1:
	movq	_BT848_CAP_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_btwrite
	movq	_BT848_COLOR_CTL_GAMMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BT848_COLOR_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btwrite
	movq	_BT848_IFORM_XTAUTO@GOTPCREL(%rip), %rax
	movq	_BT848_IFORM_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_BT848_IFORM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btwrite
	movq	_BT848_GPIO_DMA_CTL_PKTP_32@GOTPCREL(%rip), %rax
	movq	_BT848_GPIO_DMA_CTL_PLTP1_16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_BT848_GPIO_DMA_CTL_PLTP23_16@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_BT848_GPIO_DMA_CTL_GPINTC@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_BT848_GPIO_DMA_CTL_GPINTI@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_BT848_GPIO_DMA_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btwrite
	cmpq	$0, 32(%rbx)
	movl	$0, %r15d
	je	LBB0_3
## %bb.2:
	movq	_BT848_SCLOOP_CAGC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movq	_BT848_E_SCLOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_btwrite
	movq	_BT848_O_SCLOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_btwrite
	movq	_BT848_E_VSCALE_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_btwrite
	movq	_BT848_O_VSCALE_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_btwrite
	movq	_BT848_ADC_RESERVED@GOTPCREL(%rip), %rax
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_BT848_ADC_CRUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_5:
	orl	(%rax), %r14d
	movq	_BT848_ADC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_btwrite
	movq	_whitecrush_upper@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BT848_WC_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btwrite
	movq	_whitecrush_lower@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BT848_WC_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btwrite
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_BT848_E_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_btwrite
	jmp	LBB0_8
LBB0_7:
	movq	_BT848_CONTROL_LDEC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_BT848_E_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btwrite
	movl	(%r14), %r14d
LBB0_8:
	movq	_BT848_O_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_btwrite
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	_bt848_bright
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_bt848_hue
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_bt848_contrast
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_bt848_sat
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_init_irqreg                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bttv_tvcards,8,3               ## @bttv_tvcards
	.comm	_BT848_CAP_CTL,4,2              ## @BT848_CAP_CTL
	.comm	_BT848_COLOR_CTL_GAMMA,4,2      ## @BT848_COLOR_CTL_GAMMA
	.comm	_BT848_COLOR_CTL,4,2            ## @BT848_COLOR_CTL
	.comm	_BT848_IFORM_XTAUTO,4,2         ## @BT848_IFORM_XTAUTO
	.comm	_BT848_IFORM_AUTO,4,2           ## @BT848_IFORM_AUTO
	.comm	_BT848_IFORM,4,2                ## @BT848_IFORM
	.comm	_BT848_GPIO_DMA_CTL_PKTP_32,4,2 ## @BT848_GPIO_DMA_CTL_PKTP_32
	.comm	_BT848_GPIO_DMA_CTL_PLTP1_16,4,2 ## @BT848_GPIO_DMA_CTL_PLTP1_16
	.comm	_BT848_GPIO_DMA_CTL_PLTP23_16,4,2 ## @BT848_GPIO_DMA_CTL_PLTP23_16
	.comm	_BT848_GPIO_DMA_CTL_GPINTC,4,2  ## @BT848_GPIO_DMA_CTL_GPINTC
	.comm	_BT848_GPIO_DMA_CTL_GPINTI,4,2  ## @BT848_GPIO_DMA_CTL_GPINTI
	.comm	_BT848_GPIO_DMA_CTL,4,2         ## @BT848_GPIO_DMA_CTL
	.comm	_BT848_SCLOOP_CAGC,4,2          ## @BT848_SCLOOP_CAGC
	.comm	_BT848_E_SCLOOP,4,2             ## @BT848_E_SCLOOP
	.comm	_BT848_O_SCLOOP,4,2             ## @BT848_O_SCLOOP
	.comm	_BT848_E_VSCALE_HI,4,2          ## @BT848_E_VSCALE_HI
	.comm	_BT848_O_VSCALE_HI,4,2          ## @BT848_O_VSCALE_HI
	.comm	_BT848_ADC_RESERVED,4,2         ## @BT848_ADC_RESERVED
	.comm	_BT848_ADC_CRUSH,4,2            ## @BT848_ADC_CRUSH
	.comm	_BT848_ADC,4,2                  ## @BT848_ADC
	.comm	_whitecrush_upper,4,2           ## @whitecrush_upper
	.comm	_BT848_WC_UP,4,2                ## @BT848_WC_UP
	.comm	_whitecrush_lower,4,2           ## @whitecrush_lower
	.comm	_BT848_WC_DOWN,4,2              ## @BT848_WC_DOWN
	.comm	_BT848_E_CONTROL,4,2            ## @BT848_E_CONTROL
	.comm	_BT848_O_CONTROL,4,2            ## @BT848_O_CONTROL
	.comm	_BT848_CONTROL_LDEC,4,2         ## @BT848_CONTROL_LDEC
	.no_dead_strip	_init_bt848
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_bt848
_init_bt848:                            ; @init_bt848
	.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, _bttv_tvcards@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bttv_tvcards@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0, #40]
	ldr	x8, [x8, x9, lsl #3]
	cbnz	x8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _BT848_CAP_CTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT848_CAP_CTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_btwrite
Lloh6:
	adrp	x8, _BT848_COLOR_CTL_GAMMA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT848_COLOR_CTL_GAMMA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _BT848_COLOR_CTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BT848_COLOR_CTL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_btwrite
Lloh12:
	adrp	x8, _BT848_IFORM_XTAUTO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BT848_IFORM_XTAUTO@GOTPAGEOFF]
Lloh14:
	adrp	x9, _BT848_IFORM_AUTO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BT848_IFORM_AUTO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh18:
	adrp	x8, _BT848_IFORM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BT848_IFORM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_btwrite
Lloh21:
	adrp	x8, _BT848_GPIO_DMA_CTL_PKTP_32@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BT848_GPIO_DMA_CTL_PKTP_32@GOTPAGEOFF]
Lloh23:
	adrp	x9, _BT848_GPIO_DMA_CTL_PLTP1_16@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BT848_GPIO_DMA_CTL_PLTP1_16@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _BT848_GPIO_DMA_CTL_PLTP23_16@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BT848_GPIO_DMA_CTL_PLTP23_16@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _BT848_GPIO_DMA_CTL_GPINTC@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BT848_GPIO_DMA_CTL_GPINTC@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _BT848_GPIO_DMA_CTL_GPINTI@GOTPAGE
Lloh34:
	ldr	x10, [x10, _BT848_GPIO_DMA_CTL_GPINTI@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh35:
	ldr	w9, [x10]
	orr	w0, w8, w9
Lloh36:
	adrp	x8, _BT848_GPIO_DMA_CTL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BT848_GPIO_DMA_CTL@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_btwrite
	ldr	x8, [x19, #32]
Lloh39:
	adrp	x9, _BT848_SCLOOP_CAGC@GOTPAGE
Lloh40:
	ldr	x9, [x9, _BT848_SCLOOP_CAGC@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w20, wzr, w9, eq
Lloh42:
	adrp	x8, _BT848_E_SCLOOP@GOTPAGE
Lloh43:
	ldr	x8, [x8, _BT848_E_SCLOOP@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_btwrite
Lloh45:
	adrp	x8, _BT848_O_SCLOOP@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BT848_O_SCLOOP@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_btwrite
Lloh48:
	adrp	x8, _BT848_E_VSCALE_HI@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BT848_E_VSCALE_HI@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_btwrite
Lloh51:
	adrp	x8, _BT848_O_VSCALE_HI@GOTPAGE
Lloh52:
	ldr	x8, [x8, _BT848_O_VSCALE_HI@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_btwrite
Lloh54:
	adrp	x8, _BT848_ADC_RESERVED@GOTPAGE
Lloh55:
	ldr	x8, [x8, _BT848_ADC_RESERVED@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	ldr	x9, [x19, #24]
Lloh57:
	adrp	x10, _BT848_ADC_CRUSH@GOTPAGE
Lloh58:
	ldr	x10, [x10, _BT848_ADC_CRUSH@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w0, w9, w8
Lloh60:
	adrp	x8, _BT848_ADC@GOTPAGE
Lloh61:
	ldr	x8, [x8, _BT848_ADC@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	bl	_btwrite
Lloh63:
	adrp	x8, _whitecrush_upper@GOTPAGE
Lloh64:
	ldr	x8, [x8, _whitecrush_upper@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
Lloh66:
	adrp	x8, _BT848_WC_UP@GOTPAGE
Lloh67:
	ldr	x8, [x8, _BT848_WC_UP@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	bl	_btwrite
Lloh69:
	adrp	x8, _whitecrush_lower@GOTPAGE
Lloh70:
	ldr	x8, [x8, _whitecrush_lower@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
Lloh72:
	adrp	x8, _BT848_WC_DOWN@GOTPAGE
Lloh73:
	ldr	x8, [x8, _BT848_WC_DOWN@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	bl	_btwrite
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_3
; %bb.2:
Lloh75:
	adrp	x8, _BT848_E_CONTROL@GOTPAGE
Lloh76:
	ldr	x8, [x8, _BT848_E_CONTROL@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_btwrite
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh78:
	adrp	x20, _BT848_CONTROL_LDEC@GOTPAGE
Lloh79:
	ldr	x20, [x20, _BT848_CONTROL_LDEC@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh80:
	adrp	x8, _BT848_E_CONTROL@GOTPAGE
Lloh81:
	ldr	x8, [x8, _BT848_E_CONTROL@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	bl	_btwrite
	ldr	w0, [x20]
LBB0_4:
Lloh83:
	adrp	x8, _BT848_O_CONTROL@GOTPAGE
Lloh84:
	ldr	x8, [x8, _BT848_O_CONTROL@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x8]
	bl	_btwrite
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_bt848_bright
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_bt848_hue
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_bt848_contrast
	ldr	w1, [x19]
	mov	x0, x19
	bl	_bt848_sat
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_init_irqreg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_bttv_tvcards,8,3               ; @bttv_tvcards
	.comm	_BT848_CAP_CTL,4,2              ; @BT848_CAP_CTL
	.comm	_BT848_COLOR_CTL_GAMMA,4,2      ; @BT848_COLOR_CTL_GAMMA
	.comm	_BT848_COLOR_CTL,4,2            ; @BT848_COLOR_CTL
	.comm	_BT848_IFORM_XTAUTO,4,2         ; @BT848_IFORM_XTAUTO
	.comm	_BT848_IFORM_AUTO,4,2           ; @BT848_IFORM_AUTO
	.comm	_BT848_IFORM,4,2                ; @BT848_IFORM
	.comm	_BT848_GPIO_DMA_CTL_PKTP_32,4,2 ; @BT848_GPIO_DMA_CTL_PKTP_32
	.comm	_BT848_GPIO_DMA_CTL_PLTP1_16,4,2 ; @BT848_GPIO_DMA_CTL_PLTP1_16
	.comm	_BT848_GPIO_DMA_CTL_PLTP23_16,4,2 ; @BT848_GPIO_DMA_CTL_PLTP23_16
	.comm	_BT848_GPIO_DMA_CTL_GPINTC,4,2  ; @BT848_GPIO_DMA_CTL_GPINTC
	.comm	_BT848_GPIO_DMA_CTL_GPINTI,4,2  ; @BT848_GPIO_DMA_CTL_GPINTI
	.comm	_BT848_GPIO_DMA_CTL,4,2         ; @BT848_GPIO_DMA_CTL
	.comm	_BT848_SCLOOP_CAGC,4,2          ; @BT848_SCLOOP_CAGC
	.comm	_BT848_E_SCLOOP,4,2             ; @BT848_E_SCLOOP
	.comm	_BT848_O_SCLOOP,4,2             ; @BT848_O_SCLOOP
	.comm	_BT848_E_VSCALE_HI,4,2          ; @BT848_E_VSCALE_HI
	.comm	_BT848_O_VSCALE_HI,4,2          ; @BT848_O_VSCALE_HI
	.comm	_BT848_ADC_RESERVED,4,2         ; @BT848_ADC_RESERVED
	.comm	_BT848_ADC_CRUSH,4,2            ; @BT848_ADC_CRUSH
	.comm	_BT848_ADC,4,2                  ; @BT848_ADC
	.comm	_whitecrush_upper,4,2           ; @whitecrush_upper
	.comm	_BT848_WC_UP,4,2                ; @BT848_WC_UP
	.comm	_whitecrush_lower,4,2           ; @whitecrush_lower
	.comm	_BT848_WC_DOWN,4,2              ; @BT848_WC_DOWN
	.comm	_BT848_E_CONTROL,4,2            ; @BT848_E_CONTROL
	.comm	_BT848_O_CONTROL,4,2            ; @BT848_O_CONTROL
	.comm	_BT848_CONTROL_LDEC,4,2         ; @BT848_CONTROL_LDEC
	.no_dead_strip	_init_bt848
.subsections_via_symbols
