	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setdebug                       ## -- Begin function setdebug
	.p2align	4, 0x90
_setdebug:                              ## @setdebug
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$2, %edi
	jl	LBB0_3
## %bb.1:
	movq	8(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_atoi
	movl	%eax, %edi
	testl	%eax, %eax
	jns	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_3:
	movq	_debug@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
LBB0_4:
	movq	_debug@GOTPCREL(%rip), %rbx
	movl	%edi, (%rbx)
	movq	_SO_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edi, %edi
	je	LBB0_6
## %bb.5:
	movq	_options@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	notl	%eax
	movq	_options@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_7:
	movq	_options@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	callq	_onoff
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	setg	%al
LBB0_8:
	movq	_code@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: bad debugging value.\n"

	.comm	_code,4,2                       ## @code
	.comm	_debug,4,2                      ## @debug
	.comm	_SO_DEBUG,4,2                   ## @SO_DEBUG
	.comm	_options,4,2                    ## @options
L_.str.1:                               ## @.str.1
	.asciz	"Debugging %s (debug=%d).\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setdebug                       ; -- Begin function setdebug
	.p2align	2
_setdebug:                              ; @setdebug
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _debug@GOTPAGE
Lloh1:
	ldr	x20, [x20, _debug@GOTPAGEOFF]
	cmp	w0, #2
	b.lt	LBB0_3
; %bb.1:
	ldr	x19, [x1, #8]
	mov	x0, x19
	bl	_atoi
	tbz	w0, #31, LBB0_4
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w8, #-1
	b	LBB0_8
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
LBB0_4:
	str	w0, [x20]
Lloh4:
	adrp	x8, _SO_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SO_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x8]
Lloh7:
	adrp	x8, _options@GOTPAGE
Lloh8:
	ldr	x8, [x8, _options@GOTPAGEOFF]
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w10, [x8]
	orr	w9, w10, w9
	b	LBB0_7
LBB0_6:
	ldr	w10, [x8]
	bic	w9, w10, w9
LBB0_7:
	str	w9, [x8]
	bl	_onoff
	mov	x1, x0
	ldr	w8, [x20]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w8, gt
LBB0_8:
Lloh11:
	adrp	x9, _code@GOTPAGE
Lloh12:
	ldr	x9, [x9, _code@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: bad debugging value.\n"

	.comm	_code,4,2                       ; @code
	.comm	_debug,4,2                      ; @debug
	.comm	_SO_DEBUG,4,2                   ; @SO_DEBUG
	.comm	_options,4,2                    ; @options
l_.str.1:                               ; @.str.1
	.asciz	"Debugging %s (debug=%d).\n"

.subsections_via_symbols
