	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swap_on_off_gbde
_swap_on_off_gbde:                      ## @swap_on_off_gbde
	.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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_swap_basename
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r12
	movq	_which_prog@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_SWAPON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movl	%r15d, -260(%rbp)               ## 4-byte Spill
	leaq	-256(%rbp), %rdi
	movl	$64, %esi
	callq	_arc4random_buf
	leaq	-192(%rbp), %rbx
	xorl	%r15d, %r15d
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-256(%rbp,%r15), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_sprintf
	incq	%r15
	addq	$2, %rbx
	cmpq	$64, %r15
	jne	LBB0_3
## %bb.4:
	movb	$0, -64(%rbp)
	movq	__PATH_GBDE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	leaq	-192(%rbp), %r8
	xorl	%edi, %edi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_run_cmd
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	callq	_free
	movq	_qflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_7:
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	leaq	-192(%rbp), %r8
	xorl	%edi, %edi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_run_cmd
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_free
	testl	%ebx, %ebx
	movl	-260(%rbp), %r15d               ## 4-byte Reload
	movq	_which_prog@GOTPCREL(%rip), %rbx
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_13
LBB0_9:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_swap_on_off_sfile
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	_SWAPOFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.10:
	movq	__PATH_GBDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%edi, %edi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_run_cmd
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_free
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.11:
	movq	_qflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.12:
	leaq	L_.str.6(%rip), %rdi
LBB0_13:
	movq	%r14, %rsi
	callq	_warnx
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movq	%r13, %rax
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_which_prog,8,3                 ## @which_prog
	.comm	_SWAPON,8,3                     ## @SWAPON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x"

L_.str.1:                               ## @.str.1
	.asciz	"%s init %s -P %s"

	.comm	__PATH_GBDE,4,2                 ## @_PATH_GBDE
	.comm	_qflag,8,3                      ## @qflag
L_.str.2:                               ## @.str.2
	.asciz	"%s: Device already in use"

L_.str.3:                               ## @.str.3
	.asciz	"%s attach %s -p %s"

L_.str.4:                               ## @.str.4
	.asciz	"gbde (attach) error: %s"

	.comm	_SWAPOFF,8,3                    ## @SWAPOFF
L_.str.5:                               ## @.str.5
	.asciz	"%s detach %s"

L_.str.6:                               ## @.str.6
	.asciz	"%s: Device not found"

	.no_dead_strip	_swap_on_off_gbde
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swap_on_off_gbde
_swap_on_off_gbde:                      ; @swap_on_off_gbde
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	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]
	bl	_swap_basename
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x24, _which_prog@GOTPAGE
Lloh4:
	ldr	x24, [x24, _which_prog@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh5:
	adrp	x9, _SWAPON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SWAPON@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	add	x25, sp, #23
	add	x0, sp, #23
	mov	w1, #64
	bl	_arc4random_buf
	mov	x26, #0
	add	x22, sp, #87
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w2, [x25, x26]
	mov	x0, x22
	mov	x1, x23
	bl	_sprintf
	add	x26, x26, #1
	add	x22, x22, #2
	cmp	x26, #64
	b.ne	LBB0_3
; %bb.4:
	strb	wzr, [sp, #215]
Lloh10:
	adrp	x22, __PATH_GBDE@GOTPAGE
Lloh11:
	ldr	x22, [x22, __PATH_GBDE@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x23, sp, #87
	str	x23, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	mov	x3, x20
	bl	_run_cmd
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_free
Lloh14:
	adrp	x8, _qflag@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qflag@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbnz	x8, LBB0_14
; %bb.6:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_7:
	ldr	w2, [x22]
	str	x23, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, #0
	mov	x3, x20
	bl	_run_cmd
	mov	x22, x0
	mov	x0, x20
	bl	_free
	cbz	w22, LBB0_9
; %bb.8:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	_swap_on_off_sfile
	mov	x21, x0
	ldr	x8, [x24]
Lloh23:
	adrp	x9, _SWAPOFF@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SWAPOFF@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.10:
Lloh26:
	adrp	x8, __PATH_GBDE@GOTPAGE
Lloh27:
	ldr	x8, [x8, __PATH_GBDE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, #0
	mov	x3, x20
	bl	_run_cmd
	mov	x22, x0
	mov	x0, x20
	bl	_free
	cbz	w22, LBB0_15
; %bb.11:
Lloh31:
	adrp	x8, _qflag@GOTPAGE
Lloh32:
	ldr	x8, [x8, _qflag@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cbnz	x8, LBB0_14
; %bb.12:
Lloh34:
	adrp	x0, l_.str.6@PAGE
Lloh35:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_13:
	mov	x1, x19
	bl	_warnx
LBB0_14:
	mov	x21, #0
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x21
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_which_prog,8,3                 ; @which_prog
	.comm	_SWAPON,8,3                     ; @SWAPON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x"

l_.str.1:                               ; @.str.1
	.asciz	"%s init %s -P %s"

	.comm	__PATH_GBDE,4,2                 ; @_PATH_GBDE
	.comm	_qflag,8,3                      ; @qflag
l_.str.2:                               ; @.str.2
	.asciz	"%s: Device already in use"

l_.str.3:                               ; @.str.3
	.asciz	"%s attach %s -p %s"

l_.str.4:                               ; @.str.4
	.asciz	"gbde (attach) error: %s"

	.comm	_SWAPOFF,8,3                    ; @SWAPOFF
l_.str.5:                               ; @.str.5
	.asciz	"%s detach %s"

l_.str.6:                               ; @.str.6
	.asciz	"%s: Device not found"

	.no_dead_strip	_swap_on_off_gbde
.subsections_via_symbols
