	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seat_handle_capabilities
_seat_handle_capabilities:              ## @seat_handle_capabilities
	.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, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_WL_SEAT_CAPABILITY_KEYBOARD@GOTPCREL(%rip), %rax
	movq	16(%rdi), %rdi
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.1:
	testq	%rdi, %rdi
	jne	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_wl_seat_get_keyboard
	movq	%rax, 16(%rbx)
	movq	_keyboard_listener@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_wl_keyboard_add_listener
	jmp	LBB0_5
LBB0_3:
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_wl_keyboard_destroy
	movq	$0, 16(%rbx)
LBB0_5:
	movq	_WL_SEAT_CAPABILITY_POINTER@GOTPCREL(%rip), %rax
	movq	8(%rbx), %rdi
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.6:
	testq	%rdi, %rdi
	jne	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	callq	_wl_seat_get_pointer
	movq	%rax, 8(%rbx)
	movq	_pointer_listener@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_wl_pointer_add_listener
	jmp	LBB0_10
LBB0_8:
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_wl_pointer_destroy
	movq	$0, 8(%rbx)
LBB0_10:
	movq	_WL_SEAT_CAPABILITY_TOUCH@GOTPCREL(%rip), %rax
	movq	(%rbx), %rdi
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.11:
	testq	%rdi, %rdi
	jne	LBB0_15
## %bb.12:
	movq	%r14, %rdi
	callq	_wl_seat_get_touch
	movq	%rax, (%rbx)
	movq	_touch_listener@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl_touch_add_listener          ## TAILCALL
LBB0_13:
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_wl_touch_destroy
	movq	$0, (%rbx)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WL_SEAT_CAPABILITY_KEYBOARD,4,2 ## @WL_SEAT_CAPABILITY_KEYBOARD
	.comm	_keyboard_listener,4,2          ## @keyboard_listener
	.comm	_WL_SEAT_CAPABILITY_POINTER,4,2 ## @WL_SEAT_CAPABILITY_POINTER
	.comm	_pointer_listener,4,2           ## @pointer_listener
	.comm	_WL_SEAT_CAPABILITY_TOUCH,4,2   ## @WL_SEAT_CAPABILITY_TOUCH
	.comm	_touch_listener,4,2             ## @touch_listener
	.no_dead_strip	_seat_handle_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seat_handle_capabilities
_seat_handle_capabilities:              ; @seat_handle_capabilities
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _WL_SEAT_CAPABILITY_KEYBOARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WL_SEAT_CAPABILITY_KEYBOARD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x0, [x0, #16]
	tst	w8, w2
	b.eq	LBB0_3
; %bb.1:
	cbnz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_wl_seat_get_keyboard
	str	x0, [x19, #16]
Lloh3:
	adrp	x1, _keyboard_listener@GOTPAGE
Lloh4:
	ldr	x1, [x1, _keyboard_listener@GOTPAGEOFF]
	mov	x2, x19
	bl	_wl_keyboard_add_listener
	b	LBB0_5
LBB0_3:
	cbz	x0, LBB0_5
; %bb.4:
	bl	_wl_keyboard_destroy
	str	xzr, [x19, #16]
LBB0_5:
Lloh5:
	adrp	x8, _WL_SEAT_CAPABILITY_POINTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WL_SEAT_CAPABILITY_POINTER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x0, [x19, #8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.6:
	cbnz	x0, LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_wl_seat_get_pointer
	str	x0, [x19, #8]
Lloh8:
	adrp	x1, _pointer_listener@GOTPAGE
Lloh9:
	ldr	x1, [x1, _pointer_listener@GOTPAGEOFF]
	mov	x2, x19
	bl	_wl_pointer_add_listener
	b	LBB0_10
LBB0_8:
	cbz	x0, LBB0_10
; %bb.9:
	bl	_wl_pointer_destroy
	str	xzr, [x19, #8]
LBB0_10:
Lloh10:
	adrp	x8, _WL_SEAT_CAPABILITY_TOUCH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WL_SEAT_CAPABILITY_TOUCH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x0, [x19]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.11:
	cbnz	x0, LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_wl_seat_get_touch
	str	x0, [x19]
Lloh13:
	adrp	x1, _touch_listener@GOTPAGE
Lloh14:
	ldr	x1, [x1, _touch_listener@GOTPAGEOFF]
	mov	x2, 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	_wl_touch_add_listener
LBB0_13:
	cbz	x0, LBB0_15
; %bb.14:
	bl	_wl_touch_destroy
	str	xzr, [x19]
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WL_SEAT_CAPABILITY_KEYBOARD,4,2 ; @WL_SEAT_CAPABILITY_KEYBOARD
	.comm	_keyboard_listener,4,2          ; @keyboard_listener
	.comm	_WL_SEAT_CAPABILITY_POINTER,4,2 ; @WL_SEAT_CAPABILITY_POINTER
	.comm	_pointer_listener,4,2           ; @pointer_listener
	.comm	_WL_SEAT_CAPABILITY_TOUCH,4,2   ; @WL_SEAT_CAPABILITY_TOUCH
	.comm	_touch_listener,4,2             ; @touch_listener
	.no_dead_strip	_seat_handle_capabilities
.subsections_via_symbols
