	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_target_device                  ## -- Begin function target_device
	.p2align	4, 0x90
_target_device:                         ## @target_device
	.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	%rsi, %r15
	movl	%edi, %r12d
	movq	_IDC_EDITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r14d
	movq	_ID_WORDWRAP_MARGIN@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_make_dc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_get_print_rect
	movq	%rax, %r13
	shrq	$32, %rax
	subl	%eax, %r13d
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.2:
	movl	%r12d, %edi
	callq	_GetDC
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_CreateCompatibleDC
	movq	%rax, %rbx
	movl	%r12d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ReleaseDC
LBB0_3:
	movq	_EM_SETTARGETDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_SendMessageW
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_DeleteDC
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ID_WORDWRAP_NONE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%r15, (%rax)
	sete	%cl
	movq	_EM_SETTARGETDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SendMessageW                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_EDITOR,4,2                 ## @IDC_EDITOR
	.comm	_ID_WORDWRAP_MARGIN,8,3         ## @ID_WORDWRAP_MARGIN
	.comm	_EM_SETTARGETDEVICE,4,2         ## @EM_SETTARGETDEVICE
	.comm	_ID_WORDWRAP_NONE,8,3           ## @ID_WORDWRAP_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_target_device                  ; -- Begin function target_device
	.p2align	2
_target_device:                         ; @target_device
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IDC_EDITOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_EDITOR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x20, x0
Lloh3:
	adrp	x8, _ID_WORDWRAP_MARGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ID_WORDWRAP_MARGIN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x25, _EM_SETTARGETDEVICE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EM_SETTARGETDEVICE@GOTPAGEOFF]
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.1:
	bl	_make_dc
	mov	x22, x0
	bl	_get_print_rect
	lsr	x8, x0, #32
	sub	w23, w0, w8
	cbnz	x22, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_GetDC
	mov	x24, x0
	bl	_CreateCompatibleDC
	mov	x22, x0
	mov	x0, x21
	mov	x1, x24
	bl	_ReleaseDC
LBB0_3:
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x23
	bl	_SendMessageW
	mov	x21, x0
	mov	x0, x22
	bl	_DeleteDC
	cbz	x21, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh8:
	adrp	x8, _ID_WORDWRAP_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ID_WORDWRAP_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x19
	cset	w3, eq
	ldr	w1, [x25]
	mov	x0, x20
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_SendMessageW
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_EDITOR,4,2                 ; @IDC_EDITOR
	.comm	_ID_WORDWRAP_MARGIN,8,3         ; @ID_WORDWRAP_MARGIN
	.comm	_EM_SETTARGETDEVICE,4,2         ; @EM_SETTARGETDEVICE
	.comm	_ID_WORDWRAP_NONE,8,3           ; @ID_WORDWRAP_NONE
.subsections_via_symbols
