	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_button_release
_handle_button_release:                 ## @handle_button_release
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rsi), %esi
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movslq	(%rbx), %rdi
	movq	_btn_close@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rdi, %rcx
	jg	LBB0_2
## %bb.1:
	addq	8(%rax), %rcx
	cmpq	%rdi, %rcx
	jg	LBB0_15
LBB0_2:
	movl	4(%rbx), %esi
	callq	_get_button_at
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rdi
	callq	_get_process_filename
	movq	%rax, %r14
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	(%r12), %rcx
	leaq	L_.str.5(%rip), %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_fclose
	movq	_argv0@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_get_exe_path
	movq	%rax, %r15
	leaq	L_.str.6(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r14, %rdx
	callq	_sasprintf
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_symlink
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rcx
	callq	_err
LBB0_10:
	cmpq	$0, 8(%r12)
	movq	-48(%rbp), %rdx
	je	LBB0_12
## %bb.11:
	leaq	L_.str.8(%rip), %rsi
	leaq	-40(%rbp), %rdi
	callq	_sasprintf
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warn                           ## TAILCALL
LBB0_12:
	movq	%rdx, %rdi
	callq	_sstrdup
	movq	%rax, -40(%rbp)
LBB0_13:
	movq	(%rbx), %rsi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-40(%rbp), %rsi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-40(%rbp), %rdi
	callq	_start_application
	movq	-48(%rbp), %rdi
	callq	_free
	movq	-40(%rbp), %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"button released on x = %d, y = %d\n"

	.comm	_btn_close,16,3                 ## @btn_close
L_.str.1:                               ## @.str.1
	.asciz	"nagbar-cmd"

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
L_.str.2:                               ## @.str.2
	.asciz	"Could not create temporary script to store the nagbar command"

L_.str.3:                               ## @.str.3
	.asciz	"w"

L_.str.4:                               ## @.str.4
	.asciz	"Could not fdopen() temporary script to store the nagbar command"

L_.str.5:                               ## @.str.5
	.asciz	"#!/bin/sh\nrm %s\n%s"

	.comm	_argv0,8,3                      ## @argv0
L_.str.6:                               ## @.str.6
	.asciz	"%s.nagbar_cmd"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.7:                               ## @.str.7
	.asciz	"Failed to symlink %s to %s"

L_.str.8:                               ## @.str.8
	.asciz	"i3-sensible-terminal -e %s"

L_.str.9:                               ## @.str.9
	.asciz	"argv0 = %s\n"

L_.str.10:                              ## @.str.10
	.asciz	"terminal_cmd = %s\n"

	.no_dead_strip	_handle_button_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_button_release
_handle_button_release:                 ; @handle_button_release
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	ldp	w8, w9, [x1]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldrsw	x0, [x19]
Lloh2:
	adrp	x8, _btn_close@GOTPAGE
Lloh3:
	ldr	x8, [x8, _btn_close@GOTPAGEOFF]
	ldr	x9, [x8]
	cmp	x9, x0
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [x8, #8]
	add	x8, x8, x9
	cmp	x8, x0
	b.gt	LBB0_15
LBB0_2:
	ldr	w1, [x19, #4]
	bl	_get_button_at
	cbz	x0, LBB0_14
; %bb.3:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_get_process_filename
	mov	x19, x0
Lloh6:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _S_IRUSR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _S_IRUSR@GOTPAGEOFF]
	orr	w1, w8, w9
Lloh17:
	ldr	w8, [x10]
Lloh18:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.4:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fdopen
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	ldr	x3, [x20]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	mov	x0, x21
	bl	_fclose
Lloh25:
	adrp	x22, _argv0@GOTPAGE
Lloh26:
	ldr	x22, [x22, _argv0@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_get_exe_path
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #24
	mov	x2, x19
	bl	_sasprintf
	ldr	x1, [sp, #24]
	mov	x0, x21
	bl	_symlink
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.6:
Lloh29:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	x2, [sp, #24]
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x3, x21
	bl	_err
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	x2, [sp, #24]
	cbz	x8, LBB0_12
; %bb.8:
Lloh34:
	adrp	x1, l_.str.8@PAGE
Lloh35:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x0, sp, #16
	bl	_sasprintf
	b	LBB0_13
LBB0_9:
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_warn
LBB0_12:
	mov	x0, x2
	bl	_sstrdup
	str	x0, [sp, #16]
LBB0_13:
	ldr	x8, [x22]
	str	x8, [sp]
Lloh40:
	adrp	x0, l_.str.9@PAGE
Lloh41:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh42:
	adrp	x0, l_.str.10@PAGE
Lloh43:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
	ldr	x0, [sp, #16]
	bl	_start_application
	ldr	x0, [sp, #24]
	bl	_free
	ldr	x0, [sp, #16]
	bl	_free
	mov	x0, x19
	bl	_free
	mov	x0, x21
	bl	_free
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"button released on x = %d, y = %d\n"

	.comm	_btn_close,16,3                 ; @btn_close
l_.str.1:                               ; @.str.1
	.asciz	"nagbar-cmd"

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
l_.str.2:                               ; @.str.2
	.asciz	"Could not create temporary script to store the nagbar command"

l_.str.3:                               ; @.str.3
	.asciz	"w"

l_.str.4:                               ; @.str.4
	.asciz	"Could not fdopen() temporary script to store the nagbar command"

l_.str.5:                               ; @.str.5
	.asciz	"#!/bin/sh\nrm %s\n%s"

	.comm	_argv0,8,3                      ; @argv0
l_.str.6:                               ; @.str.6
	.asciz	"%s.nagbar_cmd"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.7:                               ; @.str.7
	.asciz	"Failed to symlink %s to %s"

l_.str.8:                               ; @.str.8
	.asciz	"i3-sensible-terminal -e %s"

l_.str.9:                               ; @.str.9
	.asciz	"argv0 = %s\n"

l_.str.10:                              ; @.str.10
	.asciz	"terminal_cmd = %s\n"

	.no_dead_strip	_handle_button_release
.subsections_via_symbols
