	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seatHandleCapabilities
_seatHandleCapabilities:                ## @seatHandleCapabilities
	.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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	_WL_SEAT_CAPABILITY_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	__glfw@GOTPCREL(%rip), %r15
	movq	8(%r15), %rdi
	testl	%edx, %eax
	je	LBB0_3
## %bb.1:
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_wl_seat_get_pointer
	movq	%rax, 8(%r15)
	movq	_pointerListener@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_wl_pointer_add_listener
	jmp	LBB0_6
LBB0_3:
	testl	%ebx, %eax
	jne	LBB0_6
## %bb.4:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_wl_pointer_destroy
	movq	$0, 8(%r15)
LBB0_6:
	movq	_WL_SEAT_CAPABILITY_KEYBOARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rdi
	testl	%ebx, %eax
	je	LBB0_8
## %bb.7:
	testq	%rdi, %rdi
	jne	LBB0_8
## %bb.12:
	movq	%r14, %rdi
	callq	_wl_seat_get_keyboard
	movq	%rax, (%r15)
	movq	_keyboardListener@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl_keyboard_add_listener       ## TAILCALL
LBB0_8:
	testl	%ebx, %eax
	jne	LBB0_11
## %bb.9:
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_wl_keyboard_destroy
	movq	$0, (%r15)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL_SEAT_CAPABILITY_POINTER,4,2 ## @WL_SEAT_CAPABILITY_POINTER
	.comm	__glfw,16,3                     ## @_glfw
	.comm	_pointerListener,4,2            ## @pointerListener
	.comm	_WL_SEAT_CAPABILITY_KEYBOARD,4,2 ## @WL_SEAT_CAPABILITY_KEYBOARD
	.comm	_keyboardListener,4,2           ## @keyboardListener
	.no_dead_strip	_seatHandleCapabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seatHandleCapabilities
_seatHandleCapabilities:                ; @seatHandleCapabilities
	.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
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _WL_SEAT_CAPABILITY_POINTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL_SEAT_CAPABILITY_POINTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w2
Lloh3:
	adrp	x21, __glfw@GOTPAGE
Lloh4:
	ldr	x21, [x21, __glfw@GOTPAGEOFF]
	ldr	x0, [x21, #8]
	cmp	w8, #0
	ccmp	x0, #0, #0, ne
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #0
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_4
; %bb.2:
	bl	_wl_pointer_destroy
	str	xzr, [x21, #8]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_wl_seat_get_pointer
	str	x0, [x21, #8]
Lloh5:
	adrp	x1, _pointerListener@GOTPAGE
Lloh6:
	ldr	x1, [x1, _pointerListener@GOTPAGEOFF]
	mov	x2, #0
	bl	_wl_pointer_add_listener
LBB0_4:
Lloh7:
	adrp	x8, _WL_SEAT_CAPABILITY_KEYBOARD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WL_SEAT_CAPABILITY_KEYBOARD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w8, w8, w20
	ldr	x0, [x21]
	cmp	w8, #0
	ccmp	x0, #0, #0, ne
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #0
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_7
; %bb.6:
	bl	_wl_keyboard_destroy
	str	xzr, [x21]
LBB0_7:
	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_8:
	mov	x0, x19
	bl	_wl_seat_get_keyboard
	str	x0, [x21]
Lloh10:
	adrp	x1, _keyboardListener@GOTPAGE
Lloh11:
	ldr	x1, [x1, _keyboardListener@GOTPAGEOFF]
	mov	x2, #0
	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	_wl_keyboard_add_listener
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WL_SEAT_CAPABILITY_POINTER,4,2 ; @WL_SEAT_CAPABILITY_POINTER
	.comm	__glfw,16,3                     ; @_glfw
	.comm	_pointerListener,4,2            ; @pointerListener
	.comm	_WL_SEAT_CAPABILITY_KEYBOARD,4,2 ; @WL_SEAT_CAPABILITY_KEYBOARD
	.comm	_keyboardListener,4,2           ; @keyboardListener
	.no_dead_strip	_seatHandleCapabilities
.subsections_via_symbols
