	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_motif_hints_change
_handle_motif_hints_change:             ## @handle_motif_hints_change
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%ecx, %r13d
	movq	%rsi, %r14
	movl	%ecx, %edi
	callq	_con_by_window_id
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r12
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	testq	%r15, %r15
	jne	LBB0_5
## %bb.3:
	movq	_A__MOTIF_WM_HINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_XCB_GET_PROPERTY_TYPE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$20, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	xorl	%r9d, %r9d
	callq	_xcb_get_property_unchecked
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_xcb_get_property_reply
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r15
	movq	16(%r12), %rdi
LBB0_5:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rsi
	callq	_window_update_motif_hints
	movq	-48(%rbp), %rdx
	cmpq	(%r12), %rdx
	je	LBB0_8
## %bb.6:
	movq	_BS_NORMAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_DLOG
	movq	-48(%rbp), %rsi
	movl	8(%r12), %edx
	movq	%r12, %rdi
	callq	_con_set_border_style
	movq	_croot@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_x_push_changes
LBB0_8:
	movl	$1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A__MOTIF_WM_HINTS,4,2          ## @A__MOTIF_WM_HINTS
	.comm	_XCB_GET_PROPERTY_TYPE_ANY,4,2  ## @XCB_GET_PROPERTY_TYPE_ANY
	.comm	_BS_NORMAL,8,3                  ## @BS_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Update border style of con %p to %d\n"

	.comm	_croot,4,2                      ## @croot
	.no_dead_strip	_handle_motif_hints_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_motif_hints_change
_handle_motif_hints_change:             ; @handle_motif_hints_change
	.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	x21, x5
	mov	x22, x3
	mov	x20, x1
	mov	x0, x3
	bl	_con_by_window_id
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_8
; %bb.2:
	cbnz	x21, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _A__MOTIF_WM_HINTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A__MOTIF_WM_HINTS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _XCB_GET_PROPERTY_TYPE_ANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XCB_GET_PROPERTY_TYPE_ANY@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	mov	w5, #0
	mov	w6, #20
	bl	_xcb_get_property_unchecked
	mov	x1, x0
	mov	x0, x20
	mov	x2, #0
	bl	_xcb_get_property_reply
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, x0
	ldr	x0, [x19, #16]
LBB0_5:
	add	x2, sp, #8
	mov	x1, x21
	bl	_window_update_motif_hints
	ldr	x2, [sp, #8]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _BS_NORMAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BS_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x2, x8
	ccmp	x2, x9, #4, ne
	b.eq	LBB0_7
; %bb.6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DLOG
	ldr	x1, [sp, #8]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_con_set_border_style
Lloh11:
	adrp	x8, _croot@GOTPAGE
Lloh12:
	ldr	x8, [x8, _croot@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_x_push_changes
LBB0_7:
	mov	w0, #1
LBB0_8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_A__MOTIF_WM_HINTS,4,2          ; @A__MOTIF_WM_HINTS
	.comm	_XCB_GET_PROPERTY_TYPE_ANY,4,2  ; @XCB_GET_PROPERTY_TYPE_ANY
	.comm	_BS_NORMAL,8,3                  ; @BS_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Update border style of con %p to %d\n"

	.comm	_croot,4,2                      ; @croot
	.no_dead_strip	_handle_motif_hints_change
.subsections_via_symbols
