	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssp_set_scr
_ssp_set_scr:                           ## @ssp_set_scr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_SSCR0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_ssp_read_reg
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_cpu_is_pxa25x
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rax
	movq	_PXA25x_SSP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	andl	$-65281, %r15d                  ## imm = 0xFFFF00FF
	movl	%ebx, %eax
	addl	$-2, %eax
	shrl	$31, %eax
	addl	%eax, %ebx
	addl	$-2, %ebx
	andl	$-2, %ebx
	shll	$7, %ebx
	jmp	LBB0_4
LBB0_3:
	andl	$-1048321, %r15d                ## imm = 0xFFF000FF
	shll	$8, %ebx
	addl	$-256, %ebx
LBB0_4:
	orl	%r15d, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ssp_write_reg                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SSCR0,4,2                      ## @SSCR0
	.comm	_PXA25x_SSP,8,3                 ## @PXA25x_SSP
	.no_dead_strip	_ssp_set_scr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssp_set_scr
_ssp_set_scr:                           ; @ssp_set_scr
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SSCR0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SSCR0@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ssp_read_reg
	mov	x21, x0
	bl	_cpu_is_pxa25x
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _PXA25x_SSP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PXA25x_SSP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	and	w8, w21, #0xffff00ff
	sub	w9, w20, #2
	sub	w10, w20, #1
	cmp	w9, #0
	csel	w9, w10, w9, lt
	lsl	w9, w9, #7
	and	w9, w9, #0xffffff00
	b	LBB0_4
LBB0_3:
	and	w8, w21, #0xfff000ff
	lsl	w9, w20, #8
	sub	w9, w9, #256
LBB0_4:
	orr	w2, w8, w9
	ldr	w1, [x22]
	mov	x0, x19
	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
	b	_ssp_write_reg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSCR0,4,2                      ; @SSCR0
	.comm	_PXA25x_SSP,8,3                 ; @PXA25x_SSP
	.no_dead_strip	_ssp_set_scr
.subsections_via_symbols
