	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs6000_darwin64_record_arg_flush
_rs6000_darwin64_record_arg_flush:      ## @rs6000_darwin64_record_arg_flush
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	(%rdi), %esi
	cmpl	$-1, %esi
	je	LBB0_13
## %bb.1:
	movq	%rcx, %r12
	movq	%rdi, %r8
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, (%rdi)
	movq	_BITS_PER_WORD@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%esi, %eax
	cltd
	idivl	%edi
	testl	%edx, %edx
	je	LBB0_4
## %bb.2:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%esi, %r15d
	subl	%edx, %edi
	movq	_MODE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%edx, %edx
	callq	_mode_for_size
	movl	%eax, %r13d
	movq	_BLKmode@GOTPCREL(%rip), %rax
	movl	(%r14), %edi
	cmpl	(%rax), %r13d
	jne	LBB0_5
## %bb.3:
	movl	%edi, %eax
	negl	%eax
	movl	%r15d, %esi
	andl	%eax, %esi
	movq	_word_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_6
LBB0_4:
	movq	_word_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_7
LBB0_5:
	movl	%r15d, %esi
LBB0_6:
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_7:
	movl	%edi, %ecx
	negl	%ecx
	movl	%esi, %edx
	andl	%ecx, %edx
	leal	(%rbx,%rdi), %eax
	decl	%eax
	andl	%ecx, %eax
	subl	%edx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %ecx
	movl	%esi, %r14d
	movl	%esi, %eax
	cltd
	idivl	%edi
	movl	%eax, %ebx
	addl	4(%r8), %ebx
	movq	_GP_ARG_NUM_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subl	%ebx, %esi
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.8:
	cmpl	%esi, %ecx
	jle	LBB0_10
## %bb.9:
	movl	$1, 8(%r8)
LBB0_10:
	movl	%ecx, %edi
	callq	_MIN
	testl	%eax, %eax
	jle	LBB0_13
## %bb.11:
	movl	%eax, %r15d
	movl	%r14d, %eax
	movq	_BITS_PER_UNIT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r14d
	incl	%r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_GP_ARG_MIN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	movl	%r13d, %edi
	callq	_gen_rtx_REG
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %r13
	movq	_VOIDmode@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	callq	_GEN_INT
	movl	%r12d, %edi
	movq	%r13, %r12
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_gen_rtx_EXPR_LIST
	movslq	(%r13), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%r13)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	incl	%ebx
	movq	_UNITS_PER_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	orl	%r14d, %eax
	incl	%eax
	movq	_word_mode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	decl	%r15d
	movl	%eax, %r14d
	cmpl	$1, %r15d
	ja	LBB0_12
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_WORD,4,2              ## @BITS_PER_WORD
	.comm	_MODE_INT,4,2                   ## @MODE_INT
	.comm	_BLKmode,4,2                    ## @BLKmode
	.comm	_word_mode,4,2                  ## @word_mode
	.comm	_GP_ARG_NUM_REG,4,2             ## @GP_ARG_NUM_REG
	.comm	_BITS_PER_UNIT,4,2              ## @BITS_PER_UNIT
	.comm	_GP_ARG_MIN_REG,4,2             ## @GP_ARG_MIN_REG
	.comm	_VOIDmode,4,2                   ## @VOIDmode
	.comm	_UNITS_PER_WORD,4,2             ## @UNITS_PER_WORD
	.no_dead_strip	_rs6000_darwin64_record_arg_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs6000_darwin64_record_arg_flush
_rs6000_darwin64_record_arg_flush:      ; @rs6000_darwin64_record_arg_flush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w24, [x0]
	cmn	w24, #1
	b.eq	LBB0_12
; %bb.1:
	mov	x19, x3
	mov	x23, x1
	mov	x22, x0
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	w8, #-1
	str	w8, [x0]
Lloh0:
	adrp	x20, _BITS_PER_WORD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BITS_PER_WORD@GOTPAGEOFF]
	ldr	w8, [x20]
	sdiv	w9, w24, w8
	msub	w9, w9, w8, w24
	cbz	w9, LBB0_4
; %bb.2:
	sub	w0, w8, w9
Lloh2:
	adrp	x8, _MODE_INT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MODE_INT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_mode_for_size
Lloh5:
	adrp	x8, _BLKmode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BLKmode@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	ldr	w8, [x20]
	cmp	w0, w9
	b.ne	LBB0_5
; %bb.3:
	neg	w9, w8
	and	w24, w24, w9
LBB0_4:
Lloh8:
	adrp	x9, _word_mode@GOTPAGE
Lloh9:
	ldr	x9, [x9, _word_mode@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x9]
	b	LBB0_6
LBB0_5:
	mov	x21, x0
LBB0_6:
	neg	w9, w8
	and	w10, w24, w9
	add	w11, w23, w8
	sub	w11, w11, #1
	and	w9, w11, w9
	sub	w9, w9, w10
	ldr	w10, [x22, #4]
Lloh11:
	adrp	x11, _GP_ARG_NUM_REG@GOTPAGE
Lloh12:
	ldr	x11, [x11, _GP_ARG_NUM_REG@GOTPAGEOFF]
	sdiv	w12, w24, w8
Lloh13:
	ldr	w11, [x11]
	add	w25, w12, w10
	sub	w1, w11, w25
	udiv	w0, w9, w8
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.7:
	cmp	w0, w1
	b.le	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x22, #8]
LBB0_9:
	bl	_MIN
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.10:
Lloh14:
	adrp	x8, _BITS_PER_UNIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BITS_PER_UNIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	sdiv	w22, w24, w8
	add	w24, w0, #1
Lloh17:
	adrp	x26, _GP_ARG_MIN_REG@GOTPAGE
Lloh18:
	ldr	x26, [x26, _GP_ARG_MIN_REG@GOTPAGEOFF]
Lloh19:
	adrp	x27, _VOIDmode@GOTPAGE
Lloh20:
	ldr	x27, [x27, _VOIDmode@GOTPAGEOFF]
Lloh21:
	adrp	x28, _UNITS_PER_WORD@GOTPAGE
Lloh22:
	ldr	x28, [x28, _UNITS_PER_WORD@GOTPAGEOFF]
Lloh23:
	adrp	x20, _word_mode@GOTPAGE
Lloh24:
	ldr	x20, [x20, _word_mode@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	add	w1, w25, w8
	mov	x0, x21
	bl	_gen_rtx_REG
	mov	x21, x0
	ldr	w23, [x27]
	mov	x0, x22
	bl	_GEN_INT
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	bl	_gen_rtx_EXPR_LIST
	ldrsw	x8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w0, [x9, x8, lsl #2]
	add	w25, w25, #1
	ldr	w8, [x28]
	sub	w8, w8, #1
	orr	w8, w8, w22
	add	w22, w8, #1
	ldr	w21, [x20]
	sub	w24, w24, #1
	cmp	w24, #1
	b.hi	LBB0_11
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_WORD,4,2              ; @BITS_PER_WORD
	.comm	_MODE_INT,4,2                   ; @MODE_INT
	.comm	_BLKmode,4,2                    ; @BLKmode
	.comm	_word_mode,4,2                  ; @word_mode
	.comm	_GP_ARG_NUM_REG,4,2             ; @GP_ARG_NUM_REG
	.comm	_BITS_PER_UNIT,4,2              ; @BITS_PER_UNIT
	.comm	_GP_ARG_MIN_REG,4,2             ; @GP_ARG_MIN_REG
	.comm	_VOIDmode,4,2                   ; @VOIDmode
	.comm	_UNITS_PER_WORD,4,2             ; @UNITS_PER_WORD
	.no_dead_strip	_rs6000_darwin64_record_arg_flush
.subsections_via_symbols
