	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_interface
_set_interface:                         ## @set_interface
	.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
	movslq	%esi, %r15
	movq	%r15, %rdi
	callq	_DBGINFO
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	%r15d, (%rbx)
	movq	%rbx, %rdi
	callq	_msc_set_vcr
	movq	_TCR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_rd_reg16
                                        ## kill: def $ax killed $ax def $eax
	movq	_MGSL_INTERFACE_RTS_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rbx), %ecx
	movq	_BIT7@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %edx
	movl	%edx, %esi
	orl	%eax, %esi
	notl	%edx
	andl	%eax, %edx
	testl	%ecx, %ecx
	cmovnel	%esi, %edx
	movl	(%r15), %esi
	movzwl	%dx, %edx
	movq	%rbx, %rdi
	callq	_wr_reg16
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCR,4,2                        ## @TCR
	.comm	_MGSL_INTERFACE_RTS_EN,4,2      ## @MGSL_INTERFACE_RTS_EN
	.comm	_BIT7,2,1                       ## @BIT7
	.no_dead_strip	_set_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_interface
_set_interface:                         ; @set_interface
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	sxtw	x0, w19
	bl	_DBGINFO
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	str	w19, [x20]
	mov	x0, x20
	bl	_msc_set_vcr
Lloh0:
	adrp	x19, _TCR@GOTPAGE
Lloh1:
	ldr	x19, [x19, _TCR@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x0, x20
	bl	_rd_reg16
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _MGSL_INTERFACE_RTS_EN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MGSL_INTERFACE_RTS_EN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _BIT7@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BIT7@GOTPAGEOFF]
	ldrh	w10, [x10]
	orr	w11, w10, w0
	bic	w10, w0, w10
	tst	w9, w8
	csel	w8, w10, w11, eq
	ldr	w1, [x19]
	and	w2, w8, #0xffff
	mov	x0, x20
	bl	_wr_reg16
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TCR,4,2                        ; @TCR
	.comm	_MGSL_INTERFACE_RTS_EN,4,2      ; @MGSL_INTERFACE_RTS_EN
	.comm	_BIT7,2,1                       ; @BIT7
	.no_dead_strip	_set_interface
.subsections_via_symbols
