	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_debug_level@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DEBUG_LEVEL_INFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %edx
	callq	_printk
LBB0_2:
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	%r15d, (%rbx)
	movq	_PVR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_read_reg
	andb	$15, %al
	movl	(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.3:
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.4:
	cmpl	$130, %ecx
	jne	LBB0_9
## %bb.5:
	movq	_PVR_RS232@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_PVR_V35@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_PVR_RS422@GOTPCREL(%rip), %rcx
LBB0_8:
	orb	(%rcx), %al
LBB0_9:
	movl	(%r15), %esi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_write_reg
	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	_debug_level,8,3                ## @debug_level
	.comm	_DEBUG_LEVEL_INFO,8,3           ## @DEBUG_LEVEL_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_interface(%s,%d)\n"

	.comm	_PVR,4,2                        ## @PVR
	.comm	_PVR_RS232,1,0                  ## @PVR_RS232
	.comm	_PVR_V35,1,0                    ## @PVR_V35
	.comm	_PVR_RS422,1,0                  ## @PVR_RS422
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _debug_level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug_level@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DEBUG_LEVEL_INFO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEBUG_LEVEL_INFO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
	ldr	w1, [x19, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_printk
LBB0_2:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	w21, [x19]
Lloh8:
	adrp	x21, _PVR@GOTPAGE
Lloh9:
	ldr	x21, [x21, _PVR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_read_reg
	and	w8, w0, #0xf
	ldr	w9, [x19]
	cmp	w9, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w9, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w9, #130
	b.ne	LBB0_9
; %bb.5:
Lloh10:
	adrp	x9, _PVR_RS232@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PVR_RS232@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x9, _PVR_V35@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PVR_V35@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x9, _PVR_RS422@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PVR_RS422@GOTPAGEOFF]
LBB0_8:
	ldrb	w9, [x9]
	orr	w8, w9, w8
LBB0_9:
	ldr	w1, [x21]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_write_reg
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_level,8,3                ; @debug_level
	.comm	_DEBUG_LEVEL_INFO,8,3           ; @DEBUG_LEVEL_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_interface(%s,%d)\n"

	.comm	_PVR,4,2                        ; @PVR
	.comm	_PVR_RS232,1,0                  ; @PVR_RS232
	.comm	_PVR_V35,1,0                    ; @PVR_V35
	.comm	_PVR_RS422,1,0                  ; @PVR_RS422
	.no_dead_strip	_set_interface
.subsections_via_symbols
