	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_lowpart_general            ## -- Begin function gen_lowpart_general
	.p2align	4, 0x90
_gen_lowpart_general:                   ## @gen_lowpart_general
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %r14d
	callq	_gen_lowpart_common
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_SUBREG@GOTPCREL(%rip), %r15
	movq	_no_new_pseudos@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_REG_P
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_GET_CODE
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_SUBREG_REG
	movq	%rax, %rdi
	callq	_GET_MODE
	movl	%eax, %edi
	callq	_FLOAT_MODE_P
	testq	%rax, %rax
	jne	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_MEM_P
	movl	%eax, %edi
	callq	_gcc_assert
	movq	%r12, %rdi
	callq	_GET_MODE
	movl	%eax, %edi
	callq	_GET_MODE_SIZE
	movq	_UNITS_PER_WORD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_GET_MODE
	movl	%eax, %edi
	callq	_SCALAR_INT_MODE_P
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_GET_MODE_BITSIZE
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_GET_MODE
	movl	%eax, %edi
	callq	_GET_MODE_BITSIZE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_TRULY_NOOP_TRUNCATION
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r13)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_GET_MODE
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_force_reg
	movq	%rax, %r12
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_gen_lowpart_common
	testq	%rax, %rax
	je	LBB0_2
## %bb.12:
	movq	%rax, %rbx
	jmp	LBB0_6
LBB0_13:
	movq	_WORDS_BIG_ENDIAN@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.15:
	movq	%r12, %rdi
	callq	_GET_MODE
	movl	%eax, %edi
	callq	_GET_MODE_SIZE
	movq	_UNITS_PER_WORD@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%rax, %rdi
	callq	_MAX
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_GET_MODE_SIZE
	movq	(%rbx), %rsi
	movq	%rax, %rdi
	callq	_MAX
	subl	%eax, %r15d
	jmp	LBB0_16
LBB0_5:
	movq	%r12, %rdi
	callq	_copy_to_reg
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_gen_lowpart_common
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_gcc_assert
	jmp	LBB0_6
LBB0_14:
	xorl	%r15d, %r15d
LBB0_16:
	movq	_BYTES_BIG_ENDIAN@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movq	_UNITS_PER_WORD@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movl	%r14d, %edi
	callq	_GET_MODE_SIZE
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_MIN
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rbx
	movq	%r12, %rdi
	callq	_GET_MODE
	movl	%eax, %edi
	callq	_GET_MODE_SIZE
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_MIN
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	addl	%eax, %r15d
LBB0_18:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_adjust_address                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SUBREG,8,3                     ## @SUBREG
	.comm	_UNITS_PER_WORD,8,3             ## @UNITS_PER_WORD
	.comm	_no_new_pseudos,4,2             ## @no_new_pseudos
	.comm	_WORDS_BIG_ENDIAN,8,3           ## @WORDS_BIG_ENDIAN
	.comm	_BYTES_BIG_ENDIAN,8,3           ## @BYTES_BIG_ENDIAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_lowpart_general            ; -- Begin function gen_lowpart_general
	.p2align	2
_gen_lowpart_general:                   ; @gen_lowpart_general
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_gen_lowpart_common
	mov	x21, x0
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x22, _SUBREG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SUBREG@GOTPAGEOFF]
Lloh2:
	adrp	x23, _UNITS_PER_WORD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _UNITS_PER_WORD@GOTPAGEOFF]
Lloh4:
	adrp	x24, _no_new_pseudos@GOTPAGE
Lloh5:
	ldr	x24, [x24, _no_new_pseudos@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_REG_P
	cbnz	x0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_GET_CODE
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_SUBREG_REG
	bl	_GET_MODE
	bl	_FLOAT_MODE_P
	cbnz	x0, LBB0_14
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_MEM_P
	bl	_gcc_assert
	mov	x0, x20
	bl	_GET_MODE
	bl	_GET_MODE_SIZE
	ldr	x8, [x23]
	cmp	x0, x8
	b.gt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_GET_MODE
	bl	_SCALAR_INT_MODE_P
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_GET_MODE_BITSIZE
	mov	x21, x0
	mov	x0, x20
	bl	_GET_MODE
	bl	_GET_MODE_BITSIZE
	mov	x1, x0
	mov	x0, x21
	bl	_TRULY_NOOP_TRUNCATION
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	cbnz	w8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_GET_MODE
	mov	x1, x20
	bl	_force_reg
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_gen_lowpart_common
	cbz	x0, LBB0_3
; %bb.11:
	mov	x21, x0
	b	LBB0_1
LBB0_12:
Lloh6:
	adrp	x8, _WORDS_BIG_ENDIAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WORDS_BIG_ENDIAN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.13:
	mov	x0, x20
	bl	_GET_MODE
	bl	_GET_MODE_SIZE
	ldr	x1, [x23]
	bl	_MAX
	mov	x21, x0
	mov	x0, x19
	bl	_GET_MODE_SIZE
	ldr	x1, [x23]
	bl	_MAX
	sub	w21, w21, w0
	b	LBB0_16
LBB0_14:
	mov	x0, x20
	bl	_copy_to_reg
	mov	x1, x0
	mov	x0, x19
	bl	_gen_lowpart_common
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_gcc_assert
	b	LBB0_1
LBB0_15:
	mov	w21, #0
LBB0_16:
Lloh9:
	adrp	x8, _BYTES_BIG_ENDIAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BYTES_BIG_ENDIAN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x22, [x23]
	mov	x0, x19
	bl	_GET_MODE_SIZE
	mov	x1, x0
	mov	x0, x22
	bl	_MIN
	mov	x22, x0
	ldr	x23, [x23]
	mov	x0, x20
	bl	_GET_MODE
	bl	_GET_MODE_SIZE
	mov	x1, x0
	mov	x0, x23
	bl	_MIN
	sub	w8, w0, w22
	add	w21, w21, w8
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_adjust_address
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SUBREG,8,3                     ; @SUBREG
	.comm	_UNITS_PER_WORD,8,3             ; @UNITS_PER_WORD
	.comm	_no_new_pseudos,4,2             ; @no_new_pseudos
	.comm	_WORDS_BIG_ENDIAN,8,3           ; @WORDS_BIG_ENDIAN
	.comm	_BYTES_BIG_ENDIAN,8,3           ; @BYTES_BIG_ENDIAN
.subsections_via_symbols
