	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function triflex_set_mode
_triflex_set_mode:                      ## @triflex_set_mode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movl	8(%rbx), %edi
	callq	_to_pci_dev
	movl	$0, -44(%rbp)
	xorl	%ecx, %ecx
	cmpq	$0, (%rbx)
	movq	%rax, %r14
	setne	%cl
	leal	112(,%rcx,4), %r15d
	movl	(%r13), %ebx
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_pci_read_config_dword
	addl	$-128, %r12d
	xorl	%edx, %edx
	cmpl	$10, %r12d
	ja	LBB0_2
## %bb.1:
	movslq	%r12d, %rax
	leaq	l_switch.table.triflex_set_mode(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
LBB0_2:
	shll	$4, %ebx
	movl	$65535, %eax                    ## imm = 0xFFFF
	movl	%ebx, %ecx
	shll	%cl, %eax
	notl	%eax
	shll	%cl, %edx
	andl	-44(%rbp), %eax
	orl	%eax, %edx
	movl	%edx, -44(%rbp)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pci_write_config_dword
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_triflex_set_mode
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.triflex_set_mode
l_switch.table.triflex_set_mode:
	.long	3855                            ## 0xf0f
	.long	3855                            ## 0xf0f
	.long	3855                            ## 0xf0f
	.long	514                             ## 0x202
	.long	516                             ## 0x204
	.long	1028                            ## 0x404
	.long	1288                            ## 0x508
	.long	2056                            ## 0x808
	.long	259                             ## 0x103
	.long	515                             ## 0x203
	.long	2056                            ## 0x808

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function triflex_set_mode
_triflex_set_mode:                      ; @triflex_set_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x22, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x20, #8]
	bl	_to_pci_dev
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x8, [x20]
	cmp	x8, #0
	mov	w8, #116
	mov	w9, #112
	csel	w20, w9, w8, eq
	ldr	w22, [x22]
	add	x2, sp, #12
	mov	x1, x20
	bl	_pci_read_config_dword
	mov	w8, #0
	sub	w9, w21, #128
	cmp	w9, #10
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_switch.table.triflex_set_mode@PAGE
Lloh1:
	add	x8, x8, l_switch.table.triflex_set_mode@PAGEOFF
	ldr	w8, [x8, w9, sxtw #2]
LBB0_2:
	ubfiz	w9, w22, #4, #1
	mov	w10, #65535
	lsl	w10, w10, w9
	ldr	w11, [sp, #12]
	bic	w10, w11, w10
	lsl	w8, w8, w9
	orr	w2, w10, w8
	str	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_write_config_dword
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_triflex_set_mode
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.triflex_set_mode
l_switch.table.triflex_set_mode:
	.long	3855                            ; 0xf0f
	.long	3855                            ; 0xf0f
	.long	3855                            ; 0xf0f
	.long	514                             ; 0x202
	.long	516                             ; 0x204
	.long	1028                            ; 0x404
	.long	1288                            ; 0x508
	.long	2056                            ; 0x808
	.long	259                             ; 0x103
	.long	515                             ; 0x203
	.long	2056                            ; 0x808

.subsections_via_symbols
