	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function action_bind_sublabel_subsystem_add
_action_bind_sublabel_subsystem_add:    ## @action_bind_sublabel_subsystem_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%esi, %r13d
	xorl	%eax, %eax
	callq	_runloop_get_system_info
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_subsystem_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:
	movq	_subsystem_current_count@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_8
## %bb.4:
	movq	_MENU_SETTINGS_SUBSYSTEM_ADD@GOTPCREL(%rip), %rax
	movl	%r13d, %r15d
	subl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_content_get_subsystem_rom_id
	shlq	$4, %r15
	cmpq	(%rbx,%r15), %rax
	jae	LBB0_8
## %bb.5:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_content_get_subsystem
	movq	_MENU_SETTINGS_SUBSYSTEM_ADD@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r13d
	movq	8(%rbx,%r15), %rbx
	cmpl	%r13d, %eax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_content_get_subsystem_rom_id
	movq	%rax, %r12
LBB0_7:
	movq	(%rbx,%r12,8), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	16(%rbp), %rsi
	callq	_snprintf
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_SETTINGS_SUBSYSTEM_ADD,4,2 ## @MENU_SETTINGS_SUBSYSTEM_ADD
	.comm	_subsystem_data,8,3             ## @subsystem_data
	.comm	_subsystem_current_count,8,3    ## @subsystem_current_count
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" Current Content: %s"

	.no_dead_strip	_action_bind_sublabel_subsystem_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function action_bind_sublabel_subsystem_add
_action_bind_sublabel_subsystem_add:    ; @action_bind_sublabel_subsystem_add
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x6
	mov	x20, x5
	mov	x21, x1
	bl	_runloop_get_system_info
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _subsystem_data@GOTPAGE
Lloh1:
	ldr	x9, [x9, _subsystem_data@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x22, x9, x8, eq
Lloh3:
	adrp	x8, _subsystem_current_count@GOTPAGE
Lloh4:
	ldr	x8, [x8, _subsystem_current_count@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, #0
	ccmp	x8, #1, #8, ne
	b.lt	LBB0_6
; %bb.1:
Lloh6:
	adrp	x24, _MENU_SETTINGS_SUBSYSTEM_ADD@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MENU_SETTINGS_SUBSYSTEM_ADD@GOTPAGEOFF]
	ldr	w8, [x24]
	sub	w23, w21, w8
	bl	_content_get_subsystem_rom_id
	lsl	x8, x23, #4
	ldr	x8, [x22, x8]
	cmp	x0, x8
	b.hs	LBB0_6
; %bb.2:
	bl	_content_get_subsystem
	ldr	w8, [x24]
	add	x9, x22, x23, lsl #4
	ldr	x22, [x9, #8]
	sub	w8, w21, w8
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	bl	_content_get_subsystem_rom_id
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldr	x3, [x22, x0, lsl #3]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_SETTINGS_SUBSYSTEM_ADD,4,2 ; @MENU_SETTINGS_SUBSYSTEM_ADD
	.comm	_subsystem_data,8,3             ; @subsystem_data
	.comm	_subsystem_current_count,8,3    ; @subsystem_current_count
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" Current Content: %s"

	.no_dead_strip	_action_bind_sublabel_subsystem_add
.subsections_via_symbols
