	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_commit_format              ## -- Begin function get_commit_format
	.p2align	4, 0x90
_get_commit_format:                     ## @get_commit_format
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, -24(%rbp)
	movl	$0, (%rsi)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdx
	callq	_skip_prefix
	movq	-24(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_1:
	movq	_CMIT_FMT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_13
LBB0_4:
	cmpb	$0, (%rsi)
	je	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rax
	leaq	-24(%rbp), %rdx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_skip_prefix
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	-24(%rbp), %rdi
	movl	$37, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
LBB0_12:
	callq	_save_user_format
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	-24(%rbp), %rdi
	callq	_find_commit_format
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	-24(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_die
LBB0_10:
	movl	16(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	(%r14), %edx
	movl	%edx, (%rbx)
	movl	20(%r14), %ecx
	movl	%ecx, 4(%rbx)
	movq	_CMIT_FMT_USERFORMAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.11:
	movq	8(%r14), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_CMIT_FMT_DEFAULT,4,2           ## @CMIT_FMT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"format:"

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

L_.str.2:                               ## @.str.2
	.asciz	"invalid --pretty format: %s"

	.comm	_CMIT_FMT_USERFORMAT,4,2        ## @CMIT_FMT_USERFORMAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_commit_format              ; -- Begin function get_commit_format
	.p2align	2
_get_commit_format:                     ; @get_commit_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	str	x0, [sp, #8]
	str	wzr, [x1]
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_skip_prefix
	ldr	x1, [sp, #8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w2, #0
	b	LBB0_8
LBB0_3:
Lloh2:
	adrp	x8, _CMIT_FMT_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMIT_FMT_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_9
LBB0_4:
	ldrb	w8, [x1]
	cbz	w8, LBB0_7
; %bb.5:
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x1
	mov	x1, x8
	bl	_skip_prefix
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x0, [sp, #8]
	mov	w1, #37
	bl	_strchr
	cbz	x0, LBB0_10
LBB0_7:
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	w2, #1
LBB0_8:
	bl	_save_user_format
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_find_commit_format
	mov	x20, x0
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	x1, [sp, #8]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_12:
	ldr	w2, [x20]
	str	w2, [x19]
	ldr	d0, [x20, #16]
	rev64.2s	v1, v0
	stur	d1, [x19, #4]
Lloh9:
	adrp	x8, _CMIT_FMT_USERFORMAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMIT_FMT_USERFORMAT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	fmov	w9, s0
	cmp	w9, w8
	b.ne	LBB0_9
; %bb.13:
	ldr	x1, [x20, #8]
	mov	x0, x19
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CMIT_FMT_DEFAULT,4,2           ; @CMIT_FMT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"format:"

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

l_.str.2:                               ; @.str.2
	.asciz	"invalid --pretty format: %s"

	.comm	_CMIT_FMT_USERFORMAT,4,2        ; @CMIT_FMT_USERFORMAT
.subsections_via_symbols
