	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_margin_groupbox_title
_set_margin_groupbox_title:             ## @set_margin_groupbox_title
	.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	%r12
	pushq	%rbx
	subq	$1040, %rsp                     ## imm = 0x410
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_COMDLG32_hInstance@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rsi, %rdi
	callq	_is_metric
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_PD32_MARGINS_IN_INCHES@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PD32_MARGINS_IN_MILLIMETERS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	leaq	-1072(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%r15d, %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_LoadStringW
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_grp4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movl	%r14d, %edi
	callq	_SetDlgItemTextW
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COMDLG32_hInstance,4,2         ## @COMDLG32_hInstance
	.comm	_PD32_MARGINS_IN_MILLIMETERS,4,2 ## @PD32_MARGINS_IN_MILLIMETERS
	.comm	_PD32_MARGINS_IN_INCHES,4,2     ## @PD32_MARGINS_IN_INCHES
	.comm	_grp4,4,2                       ## @grp4
	.no_dead_strip	_set_margin_groupbox_title
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_margin_groupbox_title
_set_margin_groupbox_title:             ; @set_margin_groupbox_title
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #1040
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _COMDLG32_hInstance@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMDLG32_hInstance@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x1
	bl	_is_metric
Lloh6:
	adrp	x8, _PD32_MARGINS_IN_MILLIMETERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PD32_MARGINS_IN_MILLIMETERS@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PD32_MARGINS_IN_INCHES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PD32_MARGINS_IN_INCHES@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w21, [x8]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_LoadStringW
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _grp4@GOTPAGE
Lloh11:
	ldr	x8, [x8, _grp4@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_SetDlgItemTextW
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_COMDLG32_hInstance,4,2         ; @COMDLG32_hInstance
	.comm	_PD32_MARGINS_IN_MILLIMETERS,4,2 ; @PD32_MARGINS_IN_MILLIMETERS
	.comm	_PD32_MARGINS_IN_INCHES,4,2     ; @PD32_MARGINS_IN_INCHES
	.comm	_grp4,4,2                       ; @grp4
	.no_dead_strip	_set_margin_groupbox_title
.subsections_via_symbols
