	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_shape_state
_set_shape_state:                       ## @set_shape_state
	.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	_shape_supported@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, (%rdi)
	je	LBB0_14
## %bb.2:
	movl	%esi, %ebx
	movl	8(%r15), %edi
	callq	_state_for_frame
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	callq	_con_is_floating
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	movq	_XCB_SHAPE_SK_BOUNDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_x_shape_frame
	movq	(%r15), %rax
LBB0_7:
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_XCB_SHAPE_SK_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_x_shape_frame
LBB0_9:
	cmpq	$0, (%r14)
	je	LBB0_14
## %bb.10:
	movq	%r15, %rdi
	callq	_con_is_floating
	testq	%rax, %rax
	je	LBB0_11
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ELOG                           ## TAILCALL
LBB0_11:
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.12:
	movq	_XCB_SHAPE_SK_BOUNDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_x_unshape_frame
	movq	(%r15), %rax
LBB0_13:
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.16:
	movq	_XCB_SHAPE_SK_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_x_unshape_frame                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_shape_supported,4,2            ## @shape_supported
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"window state for con %p not found\n"

	.comm	_XCB_SHAPE_SK_BOUNDING,4,2      ## @XCB_SHAPE_SK_BOUNDING
	.comm	_XCB_SHAPE_SK_INPUT,4,2         ## @XCB_SHAPE_SK_INPUT
	.no_dead_strip	_set_shape_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_shape_state
_set_shape_state:                       ; @set_shape_state
	.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
Lloh0:
	adrp	x8, _shape_supported@GOTPAGE
Lloh1:
	ldr	x8, [x8, _shape_supported@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.2:
	mov	x21, x1
	ldr	w0, [x19, #8]
	bl	_state_for_frame
	cbz	x0, LBB0_12
; %bb.3:
	mov	x20, x0
	cbz	w21, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_con_is_floating
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _XCB_SHAPE_SK_BOUNDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XCB_SHAPE_SK_BOUNDING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_x_shape_frame
	ldr	x8, [x19]
LBB0_7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _XCB_SHAPE_SK_INPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XCB_SHAPE_SK_INPUT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_x_shape_frame
LBB0_9:
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_con_is_floating
	cbz	x0, LBB0_13
LBB0_11:
	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_12:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	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
	b	_ELOG
LBB0_13:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_15
; %bb.14:
Lloh11:
	adrp	x8, _XCB_SHAPE_SK_BOUNDING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _XCB_SHAPE_SK_BOUNDING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_x_unshape_frame
	ldr	x8, [x19]
LBB0_15:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.16:
Lloh14:
	adrp	x8, _XCB_SHAPE_SK_INPUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XCB_SHAPE_SK_INPUT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_x_unshape_frame
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_shape_supported,4,2            ; @shape_supported
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"window state for con %p not found\n"

	.comm	_XCB_SHAPE_SK_BOUNDING,4,2      ; @XCB_SHAPE_SK_BOUNDING
	.comm	_XCB_SHAPE_SK_INPUT,4,2         ; @XCB_SHAPE_SK_INPUT
	.no_dead_strip	_set_shape_state
.subsections_via_symbols
