	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_on_signal@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_iwdpm_new
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_iwdpm_configure
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_iwdpm_create_bridge
	movq	8(%r15), %rdi
	callq	*(%rdi)
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	(%r15), %rbx
	movq	_quit_flag@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r14)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	*(%rbx)
	testq	%rax, %rax
	jns	LBB0_3
## %bb.6:
	movl	$-1, %r14d
	jmp	LBB0_7
LBB0_4:
	xorl	%r14d, %r14d
LBB0_7:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	%r15, %rdi
	callq	_iwdpm_free
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmovgl	%eax, %r12d
	movl	%r12d, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_on_signal,4,2                  ## @on_signal
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_quit_flag,4,2                  ## @quit_flag
	.comm	_stderr,4,2                     ## @stderr
.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _SIGINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x19, _on_signal@GOTPAGE
Lloh4:
	ldr	x19, [x19, _on_signal@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_signal
Lloh5:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_signal
	bl	_iwdpm_new
	mov	x19, x0
	mov	x1, x21
	mov	x2, x20
	bl	_iwdpm_configure
	cbnz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_iwdpm_create_bridge
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	blr	x8
	cbz	x0, LBB0_3
; %bb.2:
	mov	w21, #-1
	b	LBB0_9
LBB0_3:
	ldr	x20, [x19]
Lloh8:
	adrp	x21, _quit_flag@GOTPAGE
Lloh9:
	ldr	x21, [x21, _quit_flag@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cbnz	w8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	mov	x0, x20
	mov	w1, #2
	blr	x8
	tbz	x0, #63, LBB0_4
; %bb.6:
	mov	w21, #-1
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	ldr	x8, [x20, #8]
	mov	x0, x20
	blr	x8
	mov	x0, x19
	bl	_iwdpm_free
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	cmp	w0, #0
	csel	w0, w0, wzr, gt
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_on_signal,4,2                  ; @on_signal
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_quit_flag,4,2                  ; @quit_flag
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
