	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arm_handle_align               ## -- Begin function arm_handle_align
	.p2align	4, 0x90
_arm_handle_align:                      ## @arm_handle_align
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_rs_align_code@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movq	40(%rdi), %rax
	movl	(%rax), %eax
	movslq	12(%rdi), %rbx
	movl	8(%rdi), %ecx
	addl	%ebx, %ecx
	addq	16(%rdi), %rbx
	subl	%ecx, %eax
	movq	_MAX_MEM_FOR_RS_ALIGN_CODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	movl	$-1, %edx
	cmovgl	%ecx, %edx
	andl	%eax, %edx
	movq	_target_big_endian@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	_arm_handle_align.thumb_noop(%rip), %rax
	leaq	_arm_handle_align.thumb_bigend_noop(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	_arm_handle_align.arm_noop(%rip), %rax
	leaq	_arm_handle_align.arm_bigend_noop(%rip), %r12
	cmoveq	%rax, %r12
	xorl	%eax, %eax
	cmpq	$0, 32(%rdi)
	sete	%al
	leal	2(%rax,%rax), %r15d
	cmovneq	%rcx, %r12
	leal	(%rax,%rax), %r13d
	incl	%r13d
	andl	%edx, %r13d
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edx
	callq	_memset
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %eax
	addq	%rax, %rbx
	subl	%r13d, %edx
LBB0_3:
	cmpl	%r15d, %edx
	jl	LBB0_7
## %bb.4:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r13d
	negl	%r13d
	movl	%edx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r13, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	cmpl	%r15d, %eax
	jge	LBB0_5
## %bb.6:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	subl	%r12d, %r13d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	addl	%r13d, 12(%r14)
	movl	%r15d, 24(%r14)
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_arm_handle_align.arm_noop:             ## @arm_handle_align.arm_noop
	.ascii	"\000\000\240\341"

_arm_handle_align.thumb_noop:           ## @arm_handle_align.thumb_noop
	.ascii	"\300F"

_arm_handle_align.arm_bigend_noop:      ## @arm_handle_align.arm_bigend_noop
	.asciz	"\341\240\000"

_arm_handle_align.thumb_bigend_noop:    ## @arm_handle_align.thumb_bigend_noop
	.ascii	"F\300"

	.comm	_rs_align_code,8,3              ## @rs_align_code
	.comm	_MAX_MEM_FOR_RS_ALIGN_CODE,4,2  ## @MAX_MEM_FOR_RS_ALIGN_CODE
	.comm	_target_big_endian,8,3          ## @target_big_endian
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arm_handle_align               ; -- Begin function arm_handle_align
	.p2align	2
_arm_handle_align:                      ; @arm_handle_align
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _rs_align_code@GOTPAGE
Lloh1:
	ldr	x9, [x9, _rs_align_code@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x0
	ldp	x9, x8, [x0, #32]
	ldr	w8, [x8]
	ldp	w10, w11, [x0, #8]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	add	w10, w10, w11
	sub	w8, w8, w10
	ldr	x10, [x0, #16]
	add	x20, x10, x11
Lloh3:
	adrp	x10, _MAX_MEM_FOR_RS_ALIGN_CODE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_MEM_FOR_RS_ALIGN_CODE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w10
	csinv	w10, w10, wzr, gt
	and	w24, w10, w8
Lloh6:
	adrp	x8, _target_big_endian@GOTPAGE
Lloh7:
	ldr	x8, [x8, _target_big_endian@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x10, _arm_handle_align.thumb_bigend_noop@PAGE
Lloh10:
	add	x10, x10, _arm_handle_align.thumb_bigend_noop@PAGEOFF
Lloh11:
	adrp	x11, _arm_handle_align.thumb_noop@PAGE
Lloh12:
	add	x11, x11, _arm_handle_align.thumb_noop@PAGEOFF
	cmp	x8, #0
	csel	x8, x11, x10, eq
Lloh13:
	adrp	x10, _arm_handle_align.arm_bigend_noop@PAGE
Lloh14:
	add	x10, x10, _arm_handle_align.arm_bigend_noop@PAGEOFF
Lloh15:
	adrp	x11, _arm_handle_align.arm_noop@PAGE
Lloh16:
	add	x11, x11, _arm_handle_align.arm_noop@PAGEOFF
	csel	x10, x11, x10, eq
	mov	w11, #2
	mov	w12, #4
	cmp	x9, #0
	csel	x23, x10, x8, eq
	csel	w21, w12, w11, eq
	sub	w8, w21, #1
	ands	w22, w8, w24
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	add	x20, x20, w22, uxtw
	sub	w24, w24, w22
LBB0_3:
	cmp	w24, w21
	b.lt	LBB0_7
; %bb.4:
	mov	x25, #0
	neg	w26, w21
	mov	w24, w24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_memcpy
	add	x20, x20, x21
	add	x25, x25, x26
	add	w8, w24, w25
	cmp	w8, w21
	b.ge	LBB0_5
; %bb.6:
	sub	w22, w22, w25
LBB0_7:
	ldr	w8, [x19, #12]
	add	w8, w8, w22
	str	w8, [x19, #12]
	str	w21, [x19, #24]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_arm_handle_align.arm_noop:             ; @arm_handle_align.arm_noop
	.ascii	"\000\000\240\341"

_arm_handle_align.thumb_noop:           ; @arm_handle_align.thumb_noop
	.ascii	"\300F"

_arm_handle_align.arm_bigend_noop:      ; @arm_handle_align.arm_bigend_noop
	.asciz	"\341\240\000"

_arm_handle_align.thumb_bigend_noop:    ; @arm_handle_align.thumb_bigend_noop
	.ascii	"F\300"

	.comm	_rs_align_code,8,3              ; @rs_align_code
	.comm	_MAX_MEM_FOR_RS_ALIGN_CODE,4,2  ; @MAX_MEM_FOR_RS_ALIGN_CODE
	.comm	_target_big_endian,8,3          ; @target_big_endian
.subsections_via_symbols
