	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_hw_init
_smi_hw_init:                           ## @smi_hw_init
	.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	_MUX_MODE_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_smi_read
	movq	_rbPaMSMask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_rbPaMSDtvNoGpio@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_rbPbMSMask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%ecx, %esi
	movq	_rbPbMSDtvNoGpio@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	andl	$-983041, %esi                  ## imm = 0xFFF0FFFF
	orl	$327680, %esi                   ## imm = 0x50000
	movl	(%rbx), %edi
	callq	_smi_write
	movq	_VIDEO_CTRL_STATUS_A@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_smi_read
	andl	$-2, %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_smi_write
	movq	_MPEG2_CTRL_A@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_smi_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$-193, %eax
	leal	128(%rax), %esi
	movl	(%rbx), %edi
	callq	_smi_write
	movq	_VIDEO_CTRL_STATUS_B@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_smi_read
	andl	$-2, %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_smi_write
	movq	_MPEG2_CTRL_B@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_smi_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$-193, %eax
	leal	128(%rax), %esi
	movl	(%rbx), %edi
	callq	_smi_write
	movq	_MSI_INT_ENA_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_smi_write
	movq	_MSI_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_smi_read
	movq	_MSI_INT_STATUS_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_smi_write
	movq	_PERIPHERAL_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$771, %esi                      ## imm = 0x303
	callq	_smi_clear
	movl	$50, %edi
	callq	_msleep
	movl	(%rbx), %edi
	movl	$257, %esi                      ## imm = 0x101
	callq	_smi_set
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MUX_MODE_CTRL,4,2              ## @MUX_MODE_CTRL
	.comm	_rbPaMSMask,4,2                 ## @rbPaMSMask
	.comm	_rbPaMSDtvNoGpio,4,2            ## @rbPaMSDtvNoGpio
	.comm	_rbPbMSMask,4,2                 ## @rbPbMSMask
	.comm	_rbPbMSDtvNoGpio,4,2            ## @rbPbMSDtvNoGpio
	.comm	_VIDEO_CTRL_STATUS_A,4,2        ## @VIDEO_CTRL_STATUS_A
	.comm	_MPEG2_CTRL_A,4,2               ## @MPEG2_CTRL_A
	.comm	_VIDEO_CTRL_STATUS_B,4,2        ## @VIDEO_CTRL_STATUS_B
	.comm	_MPEG2_CTRL_B,4,2               ## @MPEG2_CTRL_B
	.comm	_MSI_INT_ENA_CLR,4,2            ## @MSI_INT_ENA_CLR
	.comm	_ALL_INT,4,2                    ## @ALL_INT
	.comm	_MSI_INT_STATUS,4,2             ## @MSI_INT_STATUS
	.comm	_MSI_INT_STATUS_CLR,4,2         ## @MSI_INT_STATUS_CLR
	.comm	_PERIPHERAL_CTRL,4,2            ## @PERIPHERAL_CTRL
	.no_dead_strip	_smi_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smi_hw_init
_smi_hw_init:                           ; @smi_hw_init
	.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
Lloh0:
	adrp	x19, _MUX_MODE_CTRL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MUX_MODE_CTRL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_smi_read
Lloh2:
	adrp	x8, _rbPaMSMask@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rbPaMSMask@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _rbPaMSDtvNoGpio@GOTPAGE
Lloh6:
	ldr	x9, [x9, _rbPaMSDtvNoGpio@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh8:
	adrp	x9, _rbPbMSMask@GOTPAGE
Lloh9:
	ldr	x9, [x9, _rbPbMSMask@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _rbPbMSDtvNoGpio@GOTPAGE
Lloh12:
	ldr	x10, [x10, _rbPbMSDtvNoGpio@GOTPAGEOFF]
	bic	w8, w8, w9
Lloh13:
	ldr	w9, [x10]
	orr	w1, w8, w9
	mov	w8, #5
	bfi	w1, w8, #16, #4
	ldr	w0, [x19]
	bl	_smi_write
Lloh14:
	adrp	x19, _VIDEO_CTRL_STATUS_A@GOTPAGE
Lloh15:
	ldr	x19, [x19, _VIDEO_CTRL_STATUS_A@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_smi_read
	and	w1, w0, #0xfffffffe
	ldr	w0, [x19]
	bl	_smi_write
Lloh16:
	adrp	x19, _MPEG2_CTRL_A@GOTPAGE
Lloh17:
	ldr	x19, [x19, _MPEG2_CTRL_A@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_smi_read
	and	w8, w0, #0xffffff3f
	orr	w1, w8, #0x80
	ldr	w0, [x19]
	bl	_smi_write
Lloh18:
	adrp	x19, _VIDEO_CTRL_STATUS_B@GOTPAGE
Lloh19:
	ldr	x19, [x19, _VIDEO_CTRL_STATUS_B@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_smi_read
	and	w1, w0, #0xfffffffe
	ldr	w0, [x19]
	bl	_smi_write
Lloh20:
	adrp	x19, _MPEG2_CTRL_B@GOTPAGE
Lloh21:
	ldr	x19, [x19, _MPEG2_CTRL_B@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_smi_read
	and	w8, w0, #0xffffff3f
	orr	w1, w8, #0x80
	ldr	w0, [x19]
	bl	_smi_write
Lloh22:
	adrp	x8, _MSI_INT_ENA_CLR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSI_INT_ENA_CLR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _ALL_INT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ALL_INT@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_smi_write
Lloh28:
	adrp	x8, _MSI_INT_STATUS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSI_INT_STATUS@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_smi_read
	mov	x1, x0
Lloh31:
	adrp	x8, _MSI_INT_STATUS_CLR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSI_INT_STATUS_CLR@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_smi_write
Lloh34:
	adrp	x19, _PERIPHERAL_CTRL@GOTPAGE
Lloh35:
	ldr	x19, [x19, _PERIPHERAL_CTRL@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #771
	bl	_smi_clear
	mov	w0, #50
	bl	_msleep
	ldr	w0, [x19]
	mov	w1, #257
	bl	_smi_set
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MUX_MODE_CTRL,4,2              ; @MUX_MODE_CTRL
	.comm	_rbPaMSMask,4,2                 ; @rbPaMSMask
	.comm	_rbPaMSDtvNoGpio,4,2            ; @rbPaMSDtvNoGpio
	.comm	_rbPbMSMask,4,2                 ; @rbPbMSMask
	.comm	_rbPbMSDtvNoGpio,4,2            ; @rbPbMSDtvNoGpio
	.comm	_VIDEO_CTRL_STATUS_A,4,2        ; @VIDEO_CTRL_STATUS_A
	.comm	_MPEG2_CTRL_A,4,2               ; @MPEG2_CTRL_A
	.comm	_VIDEO_CTRL_STATUS_B,4,2        ; @VIDEO_CTRL_STATUS_B
	.comm	_MPEG2_CTRL_B,4,2               ; @MPEG2_CTRL_B
	.comm	_MSI_INT_ENA_CLR,4,2            ; @MSI_INT_ENA_CLR
	.comm	_ALL_INT,4,2                    ; @ALL_INT
	.comm	_MSI_INT_STATUS,4,2             ; @MSI_INT_STATUS
	.comm	_MSI_INT_STATUS_CLR,4,2         ; @MSI_INT_STATUS_CLR
	.comm	_PERIPHERAL_CTRL,4,2            ; @PERIPHERAL_CTRL
	.no_dead_strip	_smi_hw_init
.subsections_via_symbols
