	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function push_check
_push_check:                            ## @push_check
	.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	%rsi, %rbx
	movl	%edi, %r14d
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	movq	8(%rbx), %r15
	leaq	L_.str.1(%rip), %rdi
	leaq	-80(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_resolve_refdup
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movslq	%eax, %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	movl	%eax, %r12d
	movq	16(%rbx), %rdi
	callq	_pushremote_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%rax), %rax
	movq	_REMOTE_UNCONFIGURED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	movq	16(%rbx), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_7:
	cmpl	$4, %r14d
	jl	LBB0_21
## %bb.8:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_get_local_heads
	movq	%rax, %r12
	movq	_REFSPEC_INIT_PUSH@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	addq	$24, %rbx
	addl	$-3, %r14d
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_refspec_appendn
	cmpl	$0, -64(%rbp)
	jle	LBB0_20
## %bb.9:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r15,%rbx), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movslq	-64(%rbp), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jge	LBB0_20
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %r15
	cmpq	$0, 16(%r15,%rbx)
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, 8(%r15,%rbx)
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r15,%rbx), %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_count_refspec_match
	cmpl	$1, %eax
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r15,%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_19
LBB0_20:
	leaq	-64(%rbp), %rdi
	callq	_refspec_clear
LBB0_21:
	movq	%r13, %rdi
	callq	_free
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"submodule--helper push-check requires at least 2 arguments"

L_.str.1:                               ## @.str.1
	.asciz	"HEAD"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to resolve HEAD as a valid ref."

	.comm	_REMOTE_UNCONFIGURED,8,3        ## @REMOTE_UNCONFIGURED
L_.str.3:                               ## @.str.3
	.asciz	"remote '%s' not configured"

	.comm	_REFSPEC_INIT_PUSH,16,3         ## @REFSPEC_INIT_PUSH
L_.str.4:                               ## @.str.4
	.asciz	"HEAD does not match the named branch in the superproject"

L_.str.5:                               ## @.str.5
	.asciz	"src refspec '%s' must name a ref"

	.no_dead_strip	_push_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function push_check
_push_check:                            ; @push_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x24, x1
	mov	x23, x0
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	ldr	x19, [x24, #8]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #40
	mov	w1, #0
	mov	x3, #0
	bl	_resolve_refdup
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_die
LBB0_4:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	mov	x21, x0
	ldr	x0, [x24, #16]
	bl	_pushremote_get
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _REMOTE_UNCONFIGURED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _REMOTE_UNCONFIGURED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_6:
	ldr	x8, [x24, #16]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die
LBB0_7:
	cmp	w23, #4
	b.lt	LBB0_21
; %bb.8:
	bl	_get_local_heads
	mov	x22, x0
Lloh13:
	adrp	x8, _REFSPEC_INIT_PUSH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REFSPEC_INIT_PUSH@GOTPAGEOFF]
Lloh15:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	add	x1, x24, #24
	sub	w2, w23, #3
	add	x0, sp, #16
	bl	_refspec_appendn
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.9:
	mov	x26, #0
	mov	x27, #0
Lloh16:
	adrp	x23, l_.str.1@PAGE
Lloh17:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh18:
	adrp	x24, l_.str.4@PAGE
Lloh19:
	add	x24, x24, l_.str.4@PAGEOFF
Lloh20:
	adrp	x25, l_.str.5@PAGE
Lloh21:
	add	x25, x25, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	bl	_die
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x28, x26]
	str	x8, [sp]
	mov	x0, x25
	bl	_die
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [sp, #16]
	add	x26, x26, #24
	cmp	x27, x8
	b.ge	LBB0_20
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x28, [sp, #24]
	add	x8, x28, x26
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x28, x26]
	mov	x1, x22
	mov	x2, #0
	bl	_count_refspec_match
	cmp	w0, #1
	b.eq	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	cbnz	w0, LBB0_11
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x28, x26]
	mov	x1, x23
	bl	_strcmp
	cbnz	w0, LBB0_11
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	w21, LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_strcmp
	cbnz	w0, LBB0_10
	b	LBB0_12
LBB0_20:
	add	x0, sp, #16
	bl	_refspec_clear
LBB0_21:
	mov	x0, x20
	bl	_free
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"submodule--helper push-check requires at least 2 arguments"

l_.str.1:                               ; @.str.1
	.asciz	"HEAD"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to resolve HEAD as a valid ref."

	.comm	_REMOTE_UNCONFIGURED,8,3        ; @REMOTE_UNCONFIGURED
l_.str.3:                               ; @.str.3
	.asciz	"remote '%s' not configured"

	.comm	_REFSPEC_INIT_PUSH,16,3         ; @REFSPEC_INIT_PUSH
l_.str.4:                               ; @.str.4
	.asciz	"HEAD does not match the named branch in the superproject"

l_.str.5:                               ; @.str.5
	.asciz	"src refspec '%s' must name a ref"

	.no_dead_strip	_push_check
.subsections_via_symbols
