	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs6000_darwin64_record_arg_advance_flush
_rs6000_darwin64_record_arg_advance_flush: ## @rs6000_darwin64_record_arg_advance_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ebx
	cmpl	$-1, %ebx
	je	LBB0_5
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$-1, (%rdi)
	movq	_BITS_PER_WORD@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%ebx, %eax
	cltd
	idivl	%edi
	testl	%edx, %edx
	je	LBB0_4
## %bb.2:
	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
	movq	_BLKmode@GOTPCREL(%rip), %rcx
	movl	(%r12), %edi
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movl	%edi, %eax
	negl	%eax
	andl	%eax, %ebx
LBB0_4:
	movl	%edi, %ecx
	negl	%ecx
	andl	%ecx, %ebx
	leal	(%r15,%rdi), %eax
	decl	%eax
	andl	%ecx, %eax
	subl	%ebx, %eax
	xorl	%edx, %edx
	divl	%edi
	addl	%eax, 4(%r14)
LBB0_5:
	popq	%rbx
	popq	%r12
	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
	.no_dead_strip	_rs6000_darwin64_record_arg_advance_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_advance_flush
_rs6000_darwin64_record_arg_advance_flush: ; @rs6000_darwin64_record_arg_advance_flush
	.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
	ldr	w21, [x0]
	cmn	w21, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w8, #-1
	str	w8, [x0]
Lloh0:
	adrp	x22, _BITS_PER_WORD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BITS_PER_WORD@GOTPAGEOFF]
	ldr	w8, [x22]
	sdiv	w9, w21, w8
	msub	w9, w9, w8, w21
	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, [x22]
	cmp	w0, w9
	b.ne	LBB0_4
; %bb.3:
	neg	w9, w8
	and	w21, w21, w9
LBB0_4:
	neg	w9, w8
	and	w10, w21, w9
	add	w11, w20, w8
	sub	w11, w11, #1
	and	w9, w11, w9
	sub	w9, w9, w10
	udiv	w8, w9, w8
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.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
	.no_dead_strip	_rs6000_darwin64_record_arg_advance_flush
.subsections_via_symbols
