	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_rc_dialog_control
_write_rc_dialog_control:               ## @write_rc_dialog_control
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movl	$2, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fwrite
	cmpq	$0, 64(%r15)
	je	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movl	$7, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fwrite
	xorl	%ebx, %ebx
	cmpq	$0, 88(%r15)
	jne	LBB0_13
LBB0_2:
	cmpq	$0, 96(%r15)
	jne	LBB0_13
	jmp	LBB0_14
LBB0_3:
	movq	_control_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.4:
	movq	72(%r15), %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	24(%rax), %rbx
	cmpq	$0, 24(%rax)
	movq	%rbx, %rax
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, 8(%rax)
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rax), %rdx
	cmpq	$-1, %rdx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%r15), %esi
	cmpq	%rsi, %rdx
	jne	LBB0_5
LBB0_10:
	movq	%rax, %rbx
LBB0_11:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.12:
	movq	%r14, %rsi
	callq	_fputs
	cmpq	$0, 88(%r15)
	je	LBB0_2
LBB0_13:
	movl	$32, %edi
	movq	%r14, %rsi
	callq	_fputc
	movq	88(%r15), %rsi
	movq	96(%r15), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_res_id_print
	movl	$44, %edi
	movq	%r14, %rsi
	callq	_fputc
LBB0_14:
	movl	80(%r15), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	testq	%rbx, %rbx
	jne	LBB0_21
## %bb.15:
	cmpq	$0, 64(%r15)
	je	LBB0_17
## %bb.16:
	movl	$34, %edi
	movq	%r14, %rsi
	callq	_fputc
	movq	64(%r15), %rsi
	jmp	LBB0_18
LBB0_17:
	xorl	%esi, %esi
LBB0_18:
	movq	72(%r15), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_res_id_print
	cmpq	$0, 64(%r15)
	je	LBB0_20
## %bb.19:
	movl	$34, %edi
	movq	%r14, %rsi
	callq	_fputc
LBB0_20:
	movl	(%r15), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_21:
	movl	48(%r15), %ecx
	movl	56(%r15), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %eax
	movq	_SS_ICON@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.22:
	cmpq	$0, 8(%r15)
	jne	LBB0_26
## %bb.23:
	cmpq	$0, 16(%r15)
	jne	LBB0_26
## %bb.24:
	cmpq	$0, 24(%r15)
	jne	LBB0_26
## %bb.25:
	cmpq	$0, 32(%r15)
	je	LBB0_30
LBB0_26:
	movl	16(%r15), %edx
	movl	24(%r15), %ecx
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.27:
	movl	(%r15), %edx
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_28:
	movq	8(%r15), %rdx
	movq	32(%r15), %rcx
	movq	%rdx, %rax
	orq	%rcx, %rax
	je	LBB0_30
## %bb.29:
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_30:
	movl	$10, %edi
	movq	%r14, %rsi
	callq	_fputc
	movq	40(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_32
## %bb.31:
	movq	%r14, %rdi
	movl	$2, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_rc_rcdata                ## TAILCALL
LBB0_32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  "

	.comm	_control_info,8,3               ## @control_info
L_.str.1:                               ## @.str.1
	.asciz	"CONTROL"

L_.str.5:                               ## @.str.5
	.asciz	" %d, "

L_.str.7:                               ## @.str.7
	.asciz	", 0x%x, "

L_.str.8:                               ## @.str.8
	.asciz	"%d, %d"

	.comm	_SS_ICON,4,2                    ## @SS_ICON
L_.str.9:                               ## @.str.9
	.asciz	", %d, %d"

L_.str.10:                              ## @.str.10
	.asciz	", 0x%x"

L_.str.11:                              ## @.str.11
	.asciz	", 0x%x, %u"

	.no_dead_strip	_write_rc_dialog_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_rc_dialog_control
_write_rc_dialog_control:               ; @write_rc_dialog_control
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #2
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_3
LBB0_1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #7
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	mov	x21, #0
	ldr	x8, [x20, #88]
	cbnz	x8, LBB0_11
LBB0_2:
	ldr	x8, [x20, #96]
	cbnz	x8, LBB0_11
	b	LBB0_12
LBB0_3:
Lloh4:
	adrp	x8, _control_info@GOTPAGE
Lloh5:
	ldr	x8, [x8, _control_info@GOTPAGEOFF]
Lloh6:
	ldr	x21, [x8]
	ldr	x8, [x21]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	x8, [x20, #72]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x21, #24]!
	cbz	x9, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x21, #16]
	cmn	x9, #1
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w10, [x20]
	cmp	x9, x10
	b.ne	LBB0_5
LBB0_9:
	ldr	x0, [x21]
	cbz	x0, LBB0_1
; %bb.10:
	mov	x1, x19
	bl	_fputs
	ldr	x8, [x20, #88]
	cbz	x8, LBB0_2
LBB0_11:
	mov	w0, #32
	mov	x1, x19
	bl	_fputc
	ldp	x1, x2, [x20, #88]
	mov	x0, x19
	mov	w3, #1
	bl	_res_id_print
	mov	w0, #44
	mov	x1, x19
	bl	_fputc
LBB0_12:
	ldr	x8, [x20, #80]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.5@PAGE
Lloh8:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	cbnz	x21, LBB0_19
; %bb.13:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_15
; %bb.14:
	mov	w0, #34
	mov	x1, x19
	bl	_fputc
	ldr	x1, [x20, #64]
	b	LBB0_16
LBB0_15:
	mov	x1, #0
LBB0_16:
	ldr	x2, [x20, #72]
	mov	x0, x19
	mov	w3, #0
	bl	_res_id_print
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_18
; %bb.17:
	mov	w0, #34
	mov	x1, x19
	bl	_fputc
LBB0_18:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.7@PAGE
Lloh10:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_19:
	ldp	x9, x8, [x20, #48]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x1, l_.str.8@PAGE
Lloh12:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	w8, [x20]
Lloh13:
	adrp	x9, _SS_ICON@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SS_ICON@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_24
; %bb.20:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_24
; %bb.21:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_24
; %bb.22:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_24
; %bb.23:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_28
LBB0_24:
	ldp	x8, x9, [x20, #16]
	stp	x8, x9, [sp]
Lloh16:
	adrp	x1, l_.str.9@PAGE
Lloh17:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	cbz	x21, LBB0_26
; %bb.25:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.10@PAGE
Lloh19:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_26:
	ldr	x8, [x20, #8]
	ldr	x9, [x20, #32]
	orr	x10, x8, x9
	cbz	x10, LBB0_28
; %bb.27:
	stp	x8, x9, [sp]
Lloh20:
	adrp	x1, l_.str.11@PAGE
Lloh21:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_28:
	mov	w0, #10
	mov	x1, x19
	bl	_fputc
	ldr	x1, [x20, #40]
	cbz	x1, LBB0_30
; %bb.29:
	mov	x0, x19
	mov	w2, #2
	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
	add	sp, sp, #64
	b	_write_rc_rcdata
LBB0_30:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  "

	.comm	_control_info,8,3               ; @control_info
l_.str.1:                               ; @.str.1
	.asciz	"CONTROL"

l_.str.5:                               ; @.str.5
	.asciz	" %d, "

l_.str.7:                               ; @.str.7
	.asciz	", 0x%x, "

l_.str.8:                               ; @.str.8
	.asciz	"%d, %d"

	.comm	_SS_ICON,4,2                    ; @SS_ICON
l_.str.9:                               ; @.str.9
	.asciz	", %d, %d"

l_.str.10:                              ; @.str.10
	.asciz	", 0x%x"

l_.str.11:                              ; @.str.11
	.asciz	", 0x%x, %u"

	.no_dead_strip	_write_rc_dialog_control
.subsections_via_symbols
