	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function via_cable_detect
_via_cable_detect:                      ## @via_cable_detect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	cmpl	$130, %eax
	je	LBB0_29
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_18
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_40
## %bb.3:
	testl	$268435456, %esi                ## imm = 0x10000000
	jne	LBB0_6
## %bb.4:
	testl	$536870912, %esi                ## imm = 0x20000000
	je	LBB0_7
## %bb.5:
	movl	%esi, %eax
	andl	$100663296, %eax                ## imm = 0x6000000
	cmpl	$100663296, %eax                ## imm = 0x6000000
	je	LBB0_7
LBB0_6:
	orb	$1, (%rdi)
LBB0_7:
	testl	$1048576, %esi                  ## imm = 0x100000
	jne	LBB0_10
## %bb.8:
	testl	$2097152, %esi                  ## imm = 0x200000
	je	LBB0_11
## %bb.9:
	movl	%esi, %eax
	andl	$393216, %eax                   ## imm = 0x60000
	cmpl	$393216, %eax                   ## imm = 0x60000
	je	LBB0_11
LBB0_10:
	orb	$1, (%rdi)
LBB0_11:
	testl	$4096, %esi                     ## imm = 0x1000
	jne	LBB0_14
## %bb.12:
	testl	$8192, %esi                     ## imm = 0x2000
	je	LBB0_15
## %bb.13:
	movl	%esi, %eax
	andl	$1536, %eax                     ## imm = 0x600
	cmpl	$1536, %eax                     ## imm = 0x600
	je	LBB0_15
LBB0_14:
	orb	$2, (%rdi)
LBB0_15:
	testb	$16, %sil
	jne	LBB0_39
## %bb.16:
	testb	$32, %sil
	je	LBB0_40
## %bb.17:
	andl	$6, %esi
	cmpl	$6, %esi
	jne	LBB0_39
LBB0_40:
	popq	%rbp
	retq
LBB0_18:
	testl	$268435456, %esi                ## imm = 0x10000000
	jne	LBB0_20
## %bb.19:
	movl	%esi, %eax
	andl	$603979776, %eax                ## imm = 0x24000000
	cmpl	$536870912, %eax                ## imm = 0x20000000
	jne	LBB0_21
LBB0_20:
	orb	$1, (%rdi)
LBB0_21:
	testl	$1048576, %esi                  ## imm = 0x100000
	jne	LBB0_23
## %bb.22:
	movl	%esi, %eax
	andl	$2359296, %eax                  ## imm = 0x240000
	cmpl	$2097152, %eax                  ## imm = 0x200000
	jne	LBB0_24
LBB0_23:
	orb	$1, (%rdi)
LBB0_24:
	testl	$4096, %esi                     ## imm = 0x1000
	jne	LBB0_26
## %bb.25:
	movl	%esi, %eax
	andl	$9216, %eax                     ## imm = 0x2400
	cmpl	$8192, %eax                     ## imm = 0x2000
	jne	LBB0_27
LBB0_26:
	orb	$2, (%rdi)
LBB0_27:
	testb	$16, %sil
	jne	LBB0_39
## %bb.28:
	andl	$36, %esi
	cmpl	$32, %esi
	jne	LBB0_40
	jmp	LBB0_39
LBB0_29:
	testl	$524288, %esi                   ## imm = 0x80000
	je	LBB0_34
## %bb.30:
	movl	%esi, %eax
	andl	$637534208, %eax                ## imm = 0x26000000
	cmpl	$536870912, %eax                ## imm = 0x20000000
	jne	LBB0_32
## %bb.31:
	orb	$1, (%rdi)
LBB0_32:
	movl	%esi, %eax
	andl	$2490368, %eax                  ## imm = 0x260000
	cmpl	$2097152, %eax                  ## imm = 0x200000
	jne	LBB0_34
## %bb.33:
	orb	$1, (%rdi)
LBB0_34:
	testb	$8, %sil
	je	LBB0_40
## %bb.35:
	movl	%esi, %eax
	andl	$9728, %eax                     ## imm = 0x2600
	cmpl	$8192, %eax                     ## imm = 0x2000
	jne	LBB0_37
## %bb.36:
	orb	$2, (%rdi)
LBB0_37:
	andl	$38, %esi
	cmpl	$32, %esi
	jne	LBB0_40
LBB0_39:
	orb	$2, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_via_cable_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function via_cable_detect
_via_cable_detect:                      ; @via_cable_detect
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #130
	b.eq	LBB0_30
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_19
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.3:
	tbnz	w1, #28, LBB0_6
; %bb.4:
	tbz	w1, #29, LBB0_7
; %bb.5:
	and	w8, w1, #0x6000000
	mov	w9, #100663296
	cmp	w8, w9
	b.eq	LBB0_7
LBB0_6:
	ldr	w8, [x0]
	orr	w8, w8, #0x1
	str	w8, [x0]
LBB0_7:
	tbnz	w1, #20, LBB0_10
; %bb.8:
	tbz	w1, #21, LBB0_11
; %bb.9:
	and	w8, w1, #0x60000
	cmp	w8, #96, lsl #12                ; =393216
	b.eq	LBB0_11
LBB0_10:
	ldr	w8, [x0]
	orr	w8, w8, #0x1
	str	w8, [x0]
LBB0_11:
	tbnz	w1, #12, LBB0_14
; %bb.12:
	tbz	w1, #13, LBB0_15
; %bb.13:
	and	w8, w1, #0x600
	cmp	w8, #1536
	b.eq	LBB0_15
LBB0_14:
	ldr	w8, [x0]
	orr	w8, w8, #0x2
	str	w8, [x0]
LBB0_15:
	tbnz	w1, #4, LBB0_40
; %bb.16:
	tbz	w1, #5, LBB0_18
; %bb.17:
	and	w8, w1, #0x6
	cmp	w8, #6
	b.ne	LBB0_40
LBB0_18:
	ret
LBB0_19:
	tbnz	w1, #28, LBB0_21
; %bb.20:
	mov	w8, #603979776
	and	w8, w1, w8
	mov	w9, #536870912
	cmp	w8, w9
	b.ne	LBB0_22
LBB0_21:
	ldr	w8, [x0]
	orr	w8, w8, #0x1
	str	w8, [x0]
LBB0_22:
	tbnz	w1, #20, LBB0_24
; %bb.23:
	mov	w8, #2359296
	and	w8, w1, w8
	cmp	w8, #512, lsl #12               ; =2097152
	b.ne	LBB0_25
LBB0_24:
	ldr	w8, [x0]
	orr	w8, w8, #0x1
	str	w8, [x0]
LBB0_25:
	tbnz	w1, #12, LBB0_27
; %bb.26:
	mov	w8, #9216
	and	w8, w1, w8
	cmp	w8, #2, lsl #12                 ; =8192
	b.ne	LBB0_28
LBB0_27:
	ldr	w8, [x0]
	orr	w8, w8, #0x2
	str	w8, [x0]
LBB0_28:
	tbnz	w1, #4, LBB0_40
; %bb.29:
	mov	w8, #36
	b	LBB0_39
LBB0_30:
	tbz	w1, #19, LBB0_35
; %bb.31:
	mov	w8, #637534208
	and	w8, w1, w8
	mov	w9, #536870912
	cmp	w8, w9
	b.ne	LBB0_33
; %bb.32:
	ldr	w8, [x0]
	orr	w8, w8, #0x1
	str	w8, [x0]
LBB0_33:
	mov	w8, #2490368
	and	w8, w1, w8
	cmp	w8, #512, lsl #12               ; =2097152
	b.ne	LBB0_35
; %bb.34:
	ldr	w8, [x0]
	orr	w8, w8, #0x1
	str	w8, [x0]
LBB0_35:
	tbz	w1, #3, LBB0_18
; %bb.36:
	mov	w8, #9728
	and	w8, w1, w8
	cmp	w8, #2, lsl #12                 ; =8192
	b.ne	LBB0_38
; %bb.37:
	ldr	w8, [x0]
	orr	w8, w8, #0x2
	str	w8, [x0]
LBB0_38:
	mov	w8, #38
LBB0_39:
	and	w8, w1, w8
	cmp	w8, #32
	b.ne	LBB0_18
LBB0_40:
	ldr	w8, [x0]
	orr	w8, w8, #0x2
	str	w8, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_via_cable_detect
.subsections_via_symbols
