	.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
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	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
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	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	_stdout,4,2                     ## @stdout
	.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
Lloh4:
	adrp	x8, _stdout@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_fflush
	mov	w8, #-1
	b	LBB0_8
LBB0_3:
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
LBB0_4:
	str	w0, [x20]
Lloh7:
	adrp	x8, _SO_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SO_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x8]
Lloh10:
	adrp	x8, _options@GOTPAGE
Lloh11:
	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]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh14:
	adrp	x8, _stdout@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_fflush
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w8, gt
LBB0_8:
Lloh17:
	adrp	x9, _code@GOTPAGE
Lloh18:
	ldr	x9, [x9, _code@GOTPAGEOFF]
Lloh19:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: bad debugging value.\n"

	.comm	_stdout,4,2                     ; @stdout
	.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
