	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_exe_path                   ## -- Begin function get_exe_path
	.p2align	4, 0x90
_get_exe_path:                          ## @get_exe_path
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	$1024, %ebx                     ## imm = 0x400
	movl	$1024, %edi                     ## imm = 0x400
	callq	_smalloc
	movq	%rax, %r12
	movq	%rax, -48(%rbp)
	movl	$1024, %edi                     ## imm = 0x400
	callq	_smalloc
	movq	%rax, %r15
	cmpb	$47, (%r13)
	jne	LBB0_1
## %bb.22:
	movq	%r15, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sstrdup                        ## TAILCALL
LBB0_1:
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	$1024, %ebx                     ## imm = 0x400
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r15, %rdi
	callq	_getcwd
	testq	%rax, %rax
	sete	%al
	jne	LBB0_7
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_ERANGE@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpq	%rcx, (%r14)
	jne	LBB0_7
## %bb.4:
	movl	$1024, %ebx                     ## imm = 0x400
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_srealloc
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_getcwd
	testq	%rax, %rax
	sete	%al
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rcx
	cmpq	%rcx, (%r14)
	je	LBB0_5
LBB0_7:
	testb	%al, %al
	je	LBB0_23
## %bb.8:
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_10
## %bb.14:
	movq	%rax, %rdi
	callq	_sstrdup
	movq	%rax, %rdi
	movq	%rax, -56(%rbp)
	jmp	LBB0_15
LBB0_23:
	movq	%r12, %rdi
	callq	_free
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_sasprintf
	jmp	LBB0_19
LBB0_10:
	movq	__CS_PATH@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%r15, %rsi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdx
	callq	_confstr
	cmpq	%rbx, %rax
	jbe	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	%rbx, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_srealloc
	movq	%rax, %r15
	movl	(%r14), %edi
	movq	%rax, %rsi
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_sasprintf
	movq	-56(%rbp), %rdi
LBB0_15:
	leaq	-48(%rbp), %rbx
	movq	_X_OK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	L_.str.3(%rip), %rsi
	callq	_strtok
	movq	%rax, %r14
	movq	-48(%rbp), %rdi
	callq	_free
	testq	%r14, %r14
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_sasprintf
	movq	-48(%rbp), %rdi
	movl	(%r12), %esi
	callq	_access
	movl	$0, %edi
	testq	%rax, %rax
	jne	LBB0_16
## %bb.18:
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_19:
	movq	%r15, %rdi
	callq	_free
	movq	-48(%rbp), %rax
	jmp	LBB0_21
LBB0_20:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
	leaq	L_.str.4(%rip), %rdi
	callq	_sstrdup
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ERANGE,8,3                     ## @ERANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

L_.str.1:                               ## @.str.1
	.asciz	"PATH"

	.comm	__CS_PATH,4,2                   ## @_CS_PATH
L_.str.2:                               ## @.str.2
	.asciz	":%s"

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

	.comm	_X_OK,4,2                       ## @X_OK
L_.str.4:                               ## @.str.4
	.asciz	"/usr/bin/i3-nagbar"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_exe_path                   ; -- Begin function get_exe_path
	.p2align	2
_get_exe_path:                          ; @get_exe_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	mov	w0, #1024
	bl	_smalloc
	mov	x22, x0
	str	x0, [sp, #24]
	mov	w0, #1024
	bl	_smalloc
	mov	x20, x0
	ldrb	w8, [x19]
	cmp	w8, #47
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_free
	mov	x0, x22
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_sstrdup
LBB0_2:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	mov	w21, #1024
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x20
	mov	w1, #1024
	bl	_getcwd
	cmp	x0, #0
	cset	w8, eq
	cbnz	x0, LBB0_7
; %bb.4:
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh2:
	adrp	x24, _ERANGE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ERANGE@GOTPAGEOFF]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.5:
	mov	w21, #1024
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x21, x21, #1
	mov	x0, x20
	mov	x1, x21
	bl	_srealloc
	mov	x20, x0
	mov	x1, x21
	bl	_getcwd
	cmp	x0, #0
	cset	w8, eq
	ldr	x9, [x23]
	ldr	x10, [x24]
	cmp	x0, #0
	ccmp	x9, x10, #0, eq
	b.eq	LBB0_6
LBB0_7:
	tbz	w8, #0, LBB0_10
LBB0_8:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	str	x0, [sp, #16]
	cbz	x0, LBB0_11
; %bb.9:
	bl	_sstrdup
	str	x0, [sp, #16]
	b	LBB0_15
LBB0_10:
	mov	x0, x22
	bl	_free
	str	x19, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	x2, x20
	bl	_sasprintf
	b	LBB0_19
LBB0_11:
Lloh8:
	adrp	x22, __CS_PATH@GOTPAGE
Lloh9:
	ldr	x22, [x22, __CS_PATH@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x21
	bl	_confstr
	cmp	x0, x21
	b.ls	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	lsl	x21, x21, #1
	mov	x0, x20
	mov	x1, x21
	bl	_srealloc
	mov	x20, x0
	b	LBB0_12
LBB0_14:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #16
	mov	x2, x20
	bl	_sasprintf
	ldr	x0, [sp, #16]
LBB0_15:
Lloh12:
	adrp	x21, l_.str.3@PAGE
Lloh13:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh14:
	adrp	x24, _X_OK@GOTPAGE
Lloh15:
	ldr	x24, [x24, _X_OK@GOTPAGEOFF]
Lloh16:
	adrp	x22, l_.str@PAGE
Lloh17:
	add	x22, x22, l_.str@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_strtok
	mov	x23, x0
	ldr	x0, [sp, #24]
	bl	_free
	cbz	x23, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x19, [sp]
	add	x0, sp, #24
	mov	x1, x22
	mov	x2, x23
	bl	_sasprintf
	ldr	x0, [sp, #24]
	ldr	w1, [x24]
	bl	_access
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_16
; %bb.18:
	ldr	x0, [sp, #16]
	bl	_free
LBB0_19:
	mov	x0, x20
	bl	_free
	ldr	x0, [sp, #24]
	b	LBB0_21
LBB0_20:
	ldr	x0, [sp, #16]
	bl	_free
	mov	x0, x20
	bl	_free
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_sstrdup
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ERANGE,8,3                     ; @ERANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

l_.str.1:                               ; @.str.1
	.asciz	"PATH"

	.comm	__CS_PATH,4,2                   ; @_CS_PATH
l_.str.2:                               ; @.str.2
	.asciz	":%s"

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

	.comm	_X_OK,4,2                       ; @X_OK
l_.str.4:                               ; @.str.4
	.asciz	"/usr/bin/i3-nagbar"

.subsections_via_symbols
