	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_putreg                         ## -- Begin function putreg
	.p2align	4, 0x90
_putreg:                                ## @putreg
	.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
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	leal	-128(%r14), %eax
	cmpl	$8, %eax
	ja	LBB0_9
## %bb.1:
	movl	$437, %ecx                      ## imm = 0x1B5
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.4:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movl	%ebx, %eax
	andl	$3, %eax
	cmpl	$3, %eax
	jne	LBB0_6
LBB0_7:
	movzwl	%bx, %ebx
	jmp	LBB0_9
LBB0_2:
	movl	$10, %ecx
	btl	%eax, %ecx
	jae	LBB0_8
## %bb.3:
	movabsq	$281474976710656, %rax          ## imm = 0x1000000000000
	addq	%rbx, %rax
	shrq	$49, %rax
	je	LBB0_9
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_8:
	movq	_FLAG_MASK@GOTPCREL(%rip), %r12
	andq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_PT_REGS_EFLAGS
	movq	(%r12), %rcx
	notq	%rcx
	andq	%rax, %rcx
	orq	%rcx, %rbx
LBB0_9:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_PT_REGS_SET
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FLAG_MASK,8,3                  ## @FLAG_MASK
	.comm	_TIF_IA32,4,2                   ## @TIF_IA32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_putreg                         ; -- Begin function putreg
	.p2align	2
_putreg:                                ; @putreg
	.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
	sub	w8, w1, #128
	cmp	w8, #8
	b.hi	LBB0_9
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #437
	tst	w8, w9
	b.eq	LBB0_5
; %bb.2:
	cbz	x2, LBB0_4
; %bb.3:
	and	x8, x2, #0x3
	cmp	x8, #3
	b.ne	LBB0_7
LBB0_4:
	and	x2, x2, #0xffff
	b	LBB0_9
LBB0_5:
	mov	w9, #10
	tst	w8, w9
	b.eq	LBB0_8
; %bb.6:
	mov	x8, #281474976710656
	add	x8, x2, x8
	lsr	x8, x8, #49
	cbz	x8, LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
Lloh3:
	adrp	x21, _FLAG_MASK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _FLAG_MASK@GOTPAGEOFF]
	ldr	x8, [x21]
	and	x22, x8, x2
	mov	x0, x20
	bl	_PT_REGS_EFLAGS
	ldr	x8, [x21]
	bic	x8, x0, x8
	orr	x2, x8, x22
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_PT_REGS_SET
	mov	w0, #0
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FLAG_MASK,8,3                  ; @FLAG_MASK
	.comm	_TIF_IA32,4,2                   ; @TIF_IA32
.subsections_via_symbols
