	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_bar
	cmpl	$2, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$1, %ebx
	jne	LBB0_10
LBB0_2:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movq	_SIGUSR1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_usr1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_SIG_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	xorl	%eax, %eax
	callq	_getpid
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_kill
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	movq	_saw@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	je	LBB0_2
LBB0_10:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-s"

	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.comm	_usr1,4,2                       ## @usr1
	.comm	_SIG_ERR,8,3                    ## @SIG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"signal"

L_.str.2:                               ## @.str.2
	.asciz	"kill"

	.comm	_saw,4,2                        ## @saw
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_bar
	cmp	w20, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #1
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh6:
	adrp	x19, _SIGUSR1@GOTPAGE
Lloh7:
	ldr	x19, [x19, _SIGUSR1@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _usr1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _usr1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_signal
Lloh11:
	adrp	x8, _SIG_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIG_ERR@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	bl	_getpid
	ldr	w1, [x19]
	bl	_kill
	cbz	x0, LBB0_10
; %bb.9:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
Lloh18:
	adrp	x8, _saw@GOTPAGE
Lloh19:
	ldr	x8, [x8, _saw@GOTPAGEOFF]
Lloh20:
	adrp	x9, _EXIT_SUCCESS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x10, _EXIT_FAILURE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _EXIT_FAILURE@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x10, eq
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-s"

	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.comm	_usr1,4,2                       ; @usr1
	.comm	_SIG_ERR,8,3                    ; @SIG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"signal"

l_.str.2:                               ; @.str.2
	.asciz	"kill"

	.comm	_saw,4,2                        ; @saw
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
.subsections_via_symbols
