	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flag_to_flag
_flag_to_flag:                          ## @flag_to_flag
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_r_return_val_if_fail
	movq	%rbx, %rdi
	callq	_r_str_trim_ro
	movq	_UT64_MAX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	%rcx, -40(%rbp)
	movq	(%r15), %rcx
	movq	%rcx, -32(%rbp)
	movl	8(%r15), %edi
	movq	_flag_to_flag_foreach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-40(%rbp), %rcx
	movq	%rax, %rsi
	callq	_r_flag_foreach_glob
	movq	-40(%rbp), %rax
	cmpq	(%rbx), %rax
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_3
## %bb.2:
	subl	%ecx, %eax
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UT64_MAX,8,3                   ## @UT64_MAX
	.comm	_flag_to_flag_foreach,4,2       ## @flag_to_flag_foreach
	.no_dead_strip	_flag_to_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flag_to_flag
_flag_to_flag:                          ; @flag_to_flag
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #0
	bl	_r_return_val_if_fail
	mov	x0, x20
	bl	_r_str_trim_ro
	mov	x1, x0
Lloh0:
	adrp	x20, _UT64_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _UT64_MAX@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19]
	stp	x8, x9, [sp]
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x8, _flag_to_flag_foreach@GOTPAGE
Lloh3:
	ldr	x8, [x8, _flag_to_flag_foreach@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x3, sp
	bl	_r_flag_foreach_glob
	mov	w0, #0
	ldr	x8, [sp]
	ldr	x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x19]
	sub	w10, w8, w9
	cmp	x8, x9
	csel	w0, wzr, w10, le
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UT64_MAX,8,3                   ; @UT64_MAX
	.comm	_flag_to_flag_foreach,4,2       ; @flag_to_flag_foreach
	.no_dead_strip	_flag_to_flag
.subsections_via_symbols
