	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_signup
_cmd_signup:                            ## @cmd_signup
	.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	$1000, %rsp                     ## imm = 0x3E8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	leaq	-304(%rbp), %rdi
	movl	$255, %esi
	callq	_getcwd
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%r12, -1040(%rbp)               ## 8-byte Spill
	movl	%r15d, -1012(%rbp)              ## 4-byte Spill
	movq	%r14, -1024(%rbp)               ## 8-byte Spill
	movq	%rbx, -1032(%rbp)               ## 8-byte Spill
	leaq	L_.str(%rip), %rdx
	leaq	-608(%rbp), %rbx
	leaq	-304(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_snprintf
	movq	_S_IRWXU@GOTPCREL(%rip), %r15
	movq	_S_IRWXG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	orl	(%r15), %esi
	movq	_S_IROTH@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movq	_S_IXOTH@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_mkdir
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_10
LBB0_3:
	movl	(%r14), %esi
	orl	(%r15), %esi
	orl	(%r13), %esi
	orl	(%r12), %esi
	leaq	-608(%rbp), %r15
	movq	%r15, %rdi
	callq	_android_update_permission
	leaq	L_.str.2(%rip), %rdx
	leaq	-1008(%rbp), %r14
	movq	%r14, %rdi
	movl	$400, %esi                      ## imm = 0x190
	movq	%r15, %rcx
	callq	_snprintf
	movq	-1040(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpa_command
	testq	%rax, %rax
	js	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_open_wpa_mon
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	movq	%rax, %r15
	movq	_MSG_INFO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.5(%rip), %rsi
	movq	-1032(%rbp), %r14               ## 8-byte Reload
	movq	%r14, %rdi
	callq	_write_summary
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wpa_command
	testq	%rax, %rax
	js	LBB0_11
## %bb.6:
	leaq	L_.str.8(%rip), %rsi
	leaq	-1008(%rbp), %rdx
	movq	%r15, %rdi
	movl	$400, %ecx                      ## imm = 0x190
	callq	_get_wpa_cli_event
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_wpa_ctrl_detach
	movq	%r15, %rdi
	callq	_wpa_ctrl_close
	movl	(%r12), %edi
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.7:
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-608(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	-1012(%rbp), %ecx               ## 4-byte Reload
	movq	-1024(%rbp), %r8                ## 8-byte Reload
	callq	_cmd_osu_select
	movl	%eax, %ecx
	jmp	LBB0_14
LBB0_8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_13
LBB0_10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	leaq	-608(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_13
LBB0_11:
	movl	(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	callq	_wpa_ctrl_detach
	movq	%r15, %rdi
	callq	_wpa_ctrl_close
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.9(%rip), %rbx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_write_summary
LBB0_13:
	movl	$-1, %ecx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ecx, %eax
	addq	$1000, %rsp                     ## imm = 0x3E8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/osu-info"

	.comm	_S_IRWXU,4,2                    ## @S_IRWXU
	.comm	_S_IRWXG,4,2                    ## @S_IRWXG
	.comm	_S_IROTH,4,2                    ## @S_IROTH
	.comm	_S_IXOTH,4,2                    ## @S_IXOTH
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"mkdir(%s) failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"SET osu_dir %s"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to configure osu_dir to wpa_supplicant"

L_.str.4:                               ## @.str.4
	.asciz	"Starting OSU fetch"

L_.str.5:                               ## @.str.5
	.asciz	"Starting OSU provider information fetch"

L_.str.6:                               ## @.str.6
	.asciz	"FETCH_OSU"

L_.str.7:                               ## @.str.7
	.asciz	"Could not start OSU fetch"

L_.str.8:                               ## @.str.8
	.asciz	"OSU provider fetch completed"

L_.str.9:                               ## @.str.9
	.asciz	"OSU fetch did not complete"

	.no_dead_strip	_cmd_signup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_signup
_cmd_signup:                            ; @cmd_signup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #992
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x22, [x0]
	add	x0, sp, #729
	mov	w1, #255
	bl	_getcwd
	cbz	x0, LBB0_11
; %bb.1:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #429
	add	x3, sp, #729
	mov	w1, #300
	bl	_snprintf
Lloh5:
	adrp	x23, _S_IRWXU@GOTPAGE
Lloh6:
	ldr	x23, [x23, _S_IRWXU@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh7:
	adrp	x24, _S_IRWXG@GOTPAGE
Lloh8:
	ldr	x24, [x24, _S_IRWXG@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh9:
	adrp	x25, _S_IROTH@GOTPAGE
Lloh10:
	ldr	x25, [x25, _S_IROTH@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w8, w9
Lloh11:
	adrp	x26, _S_IXOTH@GOTPAGE
Lloh12:
	ldr	x26, [x26, _S_IXOTH@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w1, w8, w9
	add	x0, sp, #429
	bl	_mkdir
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
Lloh16:
	adrp	x8, _EEXIST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_3:
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x26]
	orr	w1, w8, w9
	add	x0, sp, #429
	bl	_android_update_permission
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #29
	add	x3, sp, #429
	mov	w1, #400
	bl	_snprintf
	add	x1, sp, #29
	mov	x0, x22
	bl	_wpa_command
	tbnz	x0, #63, LBB0_8
; %bb.4:
	mov	x0, x22
	bl	_open_wpa_mon
	cbz	x0, LBB0_11
; %bb.5:
	mov	x23, x0
Lloh21:
	adrp	x24, _MSG_INFO@GOTPAGE
Lloh22:
	ldr	x24, [x24, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_write_summary
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_wpa_command
	tbnz	x0, #63, LBB0_14
; %bb.6:
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #29
	mov	x0, x23
	mov	w3, #400
	bl	_get_wpa_cli_event
	mov	x22, x0
	mov	x0, x23
	bl	_wpa_ctrl_detach
	mov	x0, x23
	bl	_wpa_ctrl_close
	ldr	w0, [x24]
	tbnz	w22, #31, LBB0_15
; %bb.7:
Lloh31:
	adrp	x1, l_.str.8@PAGE
Lloh32:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
	add	x1, sp, #429
	mov	x0, x19
	mov	w2, #1
	mov	x3, x21
	mov	x4, x20
	bl	_cmd_osu_select
	b	LBB0_12
LBB0_8:
Lloh33:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh38:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh40:
	ldr	w19, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	add	x8, sp, #429
	stp	x8, x0, [sp]
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_10:
	bl	_wpa_printf
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.13:
	add	sp, sp, #992
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	ldr	w0, [x24]
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	mov	x0, x23
	bl	_wpa_ctrl_detach
	mov	x0, x23
	bl	_wpa_ctrl_close
	b	LBB0_11
LBB0_15:
Lloh48:
	adrp	x20, l_.str.9@PAGE
Lloh49:
	add	x20, x20, l_.str.9@PAGEOFF
	mov	x1, x20
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x20
	bl	_write_summary
	b	LBB0_11
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/osu-info"

	.comm	_S_IRWXU,4,2                    ; @S_IRWXU
	.comm	_S_IRWXG,4,2                    ; @S_IRWXG
	.comm	_S_IROTH,4,2                    ; @S_IROTH
	.comm	_S_IXOTH,4,2                    ; @S_IXOTH
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"mkdir(%s) failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"SET osu_dir %s"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to configure osu_dir to wpa_supplicant"

l_.str.4:                               ; @.str.4
	.asciz	"Starting OSU fetch"

l_.str.5:                               ; @.str.5
	.asciz	"Starting OSU provider information fetch"

l_.str.6:                               ; @.str.6
	.asciz	"FETCH_OSU"

l_.str.7:                               ; @.str.7
	.asciz	"Could not start OSU fetch"

l_.str.8:                               ; @.str.8
	.asciz	"OSU provider fetch completed"

l_.str.9:                               ; @.str.9
	.asciz	"OSU fetch did not complete"

	.no_dead_strip	_cmd_signup
.subsections_via_symbols
