	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_framing
_set_framing:                           ## @set_framing
	.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, %r14
	cmpb	$-128, %sil
	je	LBB0_1
## %bb.2:
	cmpb	$-127, %sil
	jne	LBB0_6
## %bb.3:
	leaq	_set_framing.sdh(%rip), %rbx
	jmp	LBB0_4
LBB0_1:
	leaq	_set_framing.sonet(%rip), %rbx
LBB0_4:
	movq	%r14, %rdi
	callq	_PRIV
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movsbl	(%rbx), %edi
	movq	_C11T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PUT
	movsbl	1(%rbx), %edi
	movq	_C12T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PUT
	movsbl	2(%rbx), %edi
	movq	_C13T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PUT
	movq	_MDR@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_GET
	movzbl	3(%rbx), %edx
	movq	_uPD98402_MDR_SS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_uPD98402_MDR_SS_MASK@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	notb	%cl
	andb	%al, %cl
	orb	%cl, %dl
	movl	(%r15), %esi
	movsbl	%dl, %edi
	callq	_PUT
	movq	%r14, %rdi
	callq	_PRIV
	movq	%rax, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
_set_framing.sonet:                     ## @set_framing.sonet
	.asciz	"\001\002\003"

	.section	__TEXT,__const
_set_framing.sdh:                       ## @set_framing.sdh
	.ascii	"\001\000\000\002"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_C11T,4,2                       ## @C11T
	.comm	_C12T,4,2                       ## @C12T
	.comm	_C13T,4,2                       ## @C13T
	.comm	_MDR,4,2                        ## @MDR
	.comm	_uPD98402_MDR_SS_MASK,1,0       ## @uPD98402_MDR_SS_MASK
	.comm	_uPD98402_MDR_SS_SHIFT,1,0      ## @uPD98402_MDR_SS_SHIFT
	.no_dead_strip	_set_framing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_framing
_set_framing:                           ; @set_framing
	.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, x0
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x20, _set_framing.sdh@PAGE
Lloh1:
	add	x20, x20, _set_framing.sdh@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x20, _set_framing.sonet@PAGE
Lloh3:
	add	x20, x20, _set_framing.sonet@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_PRIV
	bl	_spin_lock_irqsave
	ldrsb	w0, [x20]
Lloh4:
	adrp	x8, _C11T@GOTPAGE
Lloh5:
	ldr	x8, [x8, _C11T@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_PUT
	ldrsb	w0, [x20, #1]
Lloh7:
	adrp	x8, _C12T@GOTPAGE
Lloh8:
	ldr	x8, [x8, _C12T@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_PUT
	ldrsb	w0, [x20, #2]
Lloh10:
	adrp	x8, _C13T@GOTPAGE
Lloh11:
	ldr	x8, [x8, _C13T@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_PUT
Lloh13:
	adrp	x21, _MDR@GOTPAGE
Lloh14:
	ldr	x21, [x21, _MDR@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_GET
Lloh15:
	adrp	x8, _uPD98402_MDR_SS_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _uPD98402_MDR_SS_MASK@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w8, w0, w8
Lloh17:
	adrp	x9, _uPD98402_MDR_SS_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _uPD98402_MDR_SS_SHIFT@GOTPAGEOFF]
	ldrb	w10, [x20, #3]
	ldrb	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w8, w9
	ldr	w1, [x21]
	sxtb	w0, w8
	bl	_PUT
	mov	x0, x19
	bl	_PRIV
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
_set_framing.sonet:                     ; @set_framing.sonet
	.asciz	"\001\002\003"

	.section	__TEXT,__const
_set_framing.sdh:                       ; @set_framing.sdh
	.ascii	"\001\000\000\002"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_C11T,4,2                       ; @C11T
	.comm	_C12T,4,2                       ; @C12T
	.comm	_C13T,4,2                       ; @C13T
	.comm	_MDR,4,2                        ; @MDR
	.comm	_uPD98402_MDR_SS_MASK,1,0       ; @uPD98402_MDR_SS_MASK
	.comm	_uPD98402_MDR_SS_SHIFT,1,0      ; @uPD98402_MDR_SS_SHIFT
	.no_dead_strip	_set_framing
.subsections_via_symbols
