	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii8620_mode_valid
_sii8620_mode_valid:                    ## @sii8620_mode_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_bridge_to_sii8620
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_sii8620_is_packing_required
	cmpl	$1, %eax
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_4
LBB0_5:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	(%rbx), %rax
	movq	_MHL_DCAP_VID_LINK_MODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_MHL_DCAP_VID_LINK_PPIXEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	jne	LBB0_5
LBB0_4:
	movq	_MODE_CLOCK_HIGH@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MHL_DCAP_VID_LINK_MODE,8,3     ## @MHL_DCAP_VID_LINK_MODE
	.comm	_MHL_DCAP_VID_LINK_PPIXEL,4,2   ## @MHL_DCAP_VID_LINK_PPIXEL
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.comm	_MODE_CLOCK_HIGH,4,2            ## @MODE_CLOCK_HIGH
	.no_dead_strip	_sii8620_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii8620_mode_valid
_sii8620_mode_valid:                    ; @sii8620_mode_valid
	.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	x20, x1
	bl	_bridge_to_sii8620
	mov	x19, x0
	mov	x1, x20
	bl	_sii8620_is_packing_required
	cmp	w0, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MHL_DCAP_VID_LINK_MODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MHL_DCAP_VID_LINK_MODE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh5:
	adrp	x9, _MHL_DCAP_VID_LINK_PPIXEL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MHL_DCAP_VID_LINK_PPIXEL@GOTPAGEOFF]
Lloh7:
	adrp	x10, _MODE_OK@GOTPAGE
Lloh8:
	ldr	x10, [x10, _MODE_OK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x11, _MODE_CLOCK_HIGH@GOTPAGE
Lloh11:
	ldr	x11, [x11, _MODE_CLOCK_HIGH@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _MODE_CLOCK_HIGH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MODE_CLOCK_HIGH@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MHL_DCAP_VID_LINK_MODE,8,3     ; @MHL_DCAP_VID_LINK_MODE
	.comm	_MHL_DCAP_VID_LINK_PPIXEL,4,2   ; @MHL_DCAP_VID_LINK_PPIXEL
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.comm	_MODE_CLOCK_HIGH,4,2            ; @MODE_CLOCK_HIGH
	.no_dead_strip	_sii8620_mode_valid
.subsections_via_symbols
