	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xcb_grab_buttons               ## -- Begin function xcb_grab_buttons
	.p2align	4, 0x90
_xcb_grab_buttons:                      ## @xcb_grab_buttons
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdx), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	addq	$4, %rbx
	movq	_XCB_BUTTON_MASK_ANY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_XCB_EVENT_MASK_BUTTON_PRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_XCB_GRAB_MODE_SYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_XCB_GRAB_MODE_ASYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movq	_root@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	_XCB_NONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	movl	(%r13), %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	pushq	%r12
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_xcb_grab_button
	addq	$32, %rsp
	movl	(%rbx), %eax
	addq	$4, %rbx
	testl	%eax, %eax
	jg	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XCB_EVENT_MASK_BUTTON_PRESS,4,2 ## @XCB_EVENT_MASK_BUTTON_PRESS
	.comm	_XCB_GRAB_MODE_SYNC,4,2         ## @XCB_GRAB_MODE_SYNC
	.comm	_XCB_GRAB_MODE_ASYNC,4,2        ## @XCB_GRAB_MODE_ASYNC
	.comm	_root,4,2                       ## @root
	.comm	_XCB_NONE,4,2                   ## @XCB_NONE
	.comm	_XCB_BUTTON_MASK_ANY,4,2        ## @XCB_BUTTON_MASK_ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xcb_grab_buttons               ; -- Begin function xcb_grab_buttons
	.p2align	2
_xcb_grab_buttons:                      ; @xcb_grab_buttons
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x2]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x21, x2, #4
Lloh0:
	adrp	x22, _XCB_EVENT_MASK_BUTTON_PRESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XCB_EVENT_MASK_BUTTON_PRESS@GOTPAGEOFF]
Lloh2:
	adrp	x23, _XCB_GRAB_MODE_SYNC@GOTPAGE
Lloh3:
	ldr	x23, [x23, _XCB_GRAB_MODE_SYNC@GOTPAGEOFF]
Lloh4:
	adrp	x24, _XCB_GRAB_MODE_ASYNC@GOTPAGE
Lloh5:
	ldr	x24, [x24, _XCB_GRAB_MODE_ASYNC@GOTPAGEOFF]
Lloh6:
	adrp	x25, _root@GOTPAGE
Lloh7:
	ldr	x25, [x25, _root@GOTPAGEOFF]
Lloh8:
	adrp	x26, _XCB_NONE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _XCB_NONE@GOTPAGEOFF]
Lloh10:
	adrp	x27, _XCB_BUTTON_MASK_ANY@GOTPAGE
Lloh11:
	ldr	x27, [x27, _XCB_BUTTON_MASK_ANY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x22]
	ldr	w4, [x23]
	ldr	w5, [x24]
	ldr	w6, [x25]
	ldr	w7, [x26]
	ldr	w9, [x27]
	stp	w8, w9, [sp]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x19
	bl	_xcb_grab_button
	ldr	w8, [x21], #4
	cmp	w8, #0
	b.gt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XCB_EVENT_MASK_BUTTON_PRESS,4,2 ; @XCB_EVENT_MASK_BUTTON_PRESS
	.comm	_XCB_GRAB_MODE_SYNC,4,2         ; @XCB_GRAB_MODE_SYNC
	.comm	_XCB_GRAB_MODE_ASYNC,4,2        ; @XCB_GRAB_MODE_ASYNC
	.comm	_root,4,2                       ; @root
	.comm	_XCB_NONE,4,2                   ; @XCB_NONE
	.comm	_XCB_BUTTON_MASK_ANY,4,2        ; @XCB_BUTTON_MASK_ANY
.subsections_via_symbols
