	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_subreg_highpart_offset         ## -- Begin function subreg_highpart_offset
	.p2align	4, 0x90
_subreg_highpart_offset:                ## @subreg_highpart_offset
	.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, %ebx
	movl	%edi, %r15d
	movl	%esi, %edi
	callq	_GET_MODE_SIZE
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_GET_MODE_SIZE
	subl	%eax, %r14d
	movl	%ebx, %edi
	callq	_GET_MODE_SIZE
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_GET_MODE_SIZE
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setge	%dil
	callq	_gcc_assert
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.2:
	movq	_WORDS_BIG_ENDIAN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_UNITS_PER_WORD@GOTPCREL(%rip), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%rcx)
	movl	%r14d, %ecx
	subl	%edx, %ecx
LBB0_4:
	movq	_BYTES_BIG_ENDIAN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_UNITS_PER_WORD@GOTPCREL(%rip), %rsi
	movl	%r14d, %eax
	cltd
	idivl	(%rsi)
	addl	%edx, %ecx
	jmp	LBB0_6
LBB0_1:
	xorl	%ecx, %ecx
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WORDS_BIG_ENDIAN,4,2           ## @WORDS_BIG_ENDIAN
	.comm	_UNITS_PER_WORD,4,2             ## @UNITS_PER_WORD
	.comm	_BYTES_BIG_ENDIAN,4,2           ## @BYTES_BIG_ENDIAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_subreg_highpart_offset         ; -- Begin function subreg_highpart_offset
	.p2align	2
_subreg_highpart_offset:                ; @subreg_highpart_offset
	.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
	mov	x0, x1
	bl	_GET_MODE_SIZE
	mov	x21, x0
	mov	x0, x20
	bl	_GET_MODE_SIZE
	sub	w21, w21, w0
	mov	x0, x19
	bl	_GET_MODE_SIZE
	mov	x19, x0
	mov	x0, x20
	bl	_GET_MODE_SIZE
	cmp	x19, x0
	cset	w0, ge
	bl	_gcc_assert
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _WORDS_BIG_ENDIAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WORDS_BIG_ENDIAN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _UNITS_PER_WORD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNITS_PER_WORD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w9, w21, w8
	mul	w0, w9, w8
LBB0_5:
Lloh6:
	adrp	x8, _BYTES_BIG_ENDIAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BYTES_BIG_ENDIAN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbnz	w8, LBB0_7
; %bb.6:
Lloh9:
	adrp	x8, _UNITS_PER_WORD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UNITS_PER_WORD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sdiv	w9, w21, w8
	msub	w8, w9, w8, w21
	add	w0, w8, w0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WORDS_BIG_ENDIAN,4,2           ; @WORDS_BIG_ENDIAN
	.comm	_UNITS_PER_WORD,4,2             ; @UNITS_PER_WORD
	.comm	_BYTES_BIG_ENDIAN,4,2           ; @BYTES_BIG_ENDIAN
.subsections_via_symbols
