	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_window_update_transient_for    ## -- Begin function window_update_transient_for
	.p2align	4, 0x90
_window_update_transient_for:           ## @window_update_transient_for
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_xcb_get_property_value_length
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	-20(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_xcb_icccm_get_wm_transient_for_from_reply
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	-20(%rbp), %esi
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movl	-20(%rbp), %eax
	movl	%eax, (%r14)
LBB0_4:
	movq	%rbx, %rdi
	callq	_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	movq	_XCB_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_FREE                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TRANSIENT_FOR not set on window 0x%08x.\n"

	.comm	_XCB_NONE,4,2                   ## @XCB_NONE
L_.str.1:                               ## @.str.1
	.asciz	"Transient for changed to 0x%08x (window 0x%08x)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_window_update_transient_for    ; -- Begin function window_update_transient_for
	.p2align	2
_window_update_transient_for:           ; @window_update_transient_for
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	cbz	x1, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_xcb_get_property_value_length
	cbz	x0, LBB0_5
; %bb.2:
	add	x0, sp, #12
	mov	x1, x19
	bl	_xcb_icccm_get_wm_transient_for_from_reply
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w1, [sp, #12]
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
	ldr	w8, [sp, #12]
	str	w8, [x20]
LBB0_4:
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	w1, [x20, #4]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
Lloh4:
	adrp	x8, _XCB_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XCB_NONE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_FREE
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TRANSIENT_FOR not set on window 0x%08x.\n"

	.comm	_XCB_NONE,4,2                   ; @XCB_NONE
l_.str.1:                               ; @.str.1
	.asciz	"Transient for changed to 0x%08x (window 0x%08x)\n"

.subsections_via_symbols
