	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sn9c102_set_scale
_sn9c102_set_scale:                     ## @sn9c102_set_scale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	cmpl	$4, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$2, %ebx
	je	LBB0_4
## %bb.2:
	xorl	%esi, %esi
	cmpl	$1, %ebx
	jne	LBB0_6
## %bb.3:
	movq	(%rdi), %rax
	movl	$207, %esi
	andl	96(%rax), %esi
	jmp	LBB0_6
LBB0_5:
	movq	(%rdi), %rax
	movl	96(%rax), %esi
	orl	$32, %esi
	jmp	LBB0_6
LBB0_4:
	movq	(%rdi), %rax
	movl	$207, %esi
	andl	96(%rax), %esi
	orl	$16, %esi
LBB0_6:
	movl	$24, %edx
	callq	_sn9c102_write_reg
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_PDBGG
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Scaling factor: %u"

	.no_dead_strip	_sn9c102_set_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sn9c102_set_scale
_sn9c102_set_scale:                     ; @sn9c102_set_scale
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cmp	w1, #4
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w19, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x0]
	ldr	w8, [x8, #96]
	mov	w9, #207
	and	w1, w8, w9
	b	LBB0_7
LBB0_4:
	ldr	x8, [x0]
	ldr	w8, [x8, #96]
	orr	w1, w8, #0x20
	b	LBB0_7
LBB0_5:
	ldr	x8, [x0]
	ldr	w8, [x8, #96]
	mov	w9, #207
	and	w8, w8, w9
	orr	w1, w8, #0x10
	b	LBB0_7
LBB0_6:
	mov	w1, #0
LBB0_7:
	mov	w2, #24
	bl	_sn9c102_write_reg
	cbz	w0, LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_PDBGG
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Scaling factor: %u"

	.no_dead_strip	_sn9c102_set_scale
.subsections_via_symbols
