	.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, %r12
	movl	%edi, %r14d
	movq	_IF_NAMESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -48(%rbp)                 ## 8-byte Spill
	cmpl	$1, %r14d
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	movq	__PATH_BPF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	8(%r12), %rdi
	movl	%r15d, %esi
	callq	_bind_if_to_bpf
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_find_ether
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_bind_if_to_bpf
	movl	$1, %ebx
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %ebx
	movl	$1, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_err
LBB0_9:
	cmpl	%r14d, %ebx
	jge	LBB0_15
LBB0_10:
	movl	%r14d, %eax
	movl	%ebx, %r14d
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rsi
	movl	%r15d, %edi
	callq	_wake
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r12,%r14,8), %rdx
	leaq	L_.str.3(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_warn
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_14:
	movq	8(%r12), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_strlcpy
	movl	$2, %ebx
	cmpl	%r14d, %ebx
	jl	LBB0_10
LBB0_15:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_usage
LBB0_16:
	movl	%ebx, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_NAMESIZE,4,2                ## @IF_NAMESIZE
	.comm	__PATH_BPF,4,2                  ## @_PATH_BPF
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot open bpf interface"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to determine ethernet interface"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot bind to interface `%s'"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot send Wake on LAN frame over `%s' to `%s'"

.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _IF_NAMESIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IF_NAMESIZE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x9, x23
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
Lloh5:
	adrp	x8, __PATH_BPF@GOTPAGE
Lloh6:
	ldr	x8, [x8, __PATH_BPF@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	ldr	x0, [x21, #8]
	mov	x1, x20
	bl	_bind_if_to_bpf
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	mov	x1, x23
	bl	_find_ether
	cbz	x0, LBB0_7
; %bb.6:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_bind_if_to_bpf
	cmn	w0, #1
	b.ne	LBB0_15
; %bb.8:
	str	x19, [sp, #-16]!
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w24, #1
	mov	w0, #1
	bl	_err
	add	sp, sp, #16
	cmp	w24, w22
	b.lt	LBB0_10
	b	LBB0_16
LBB0_9:
	ldr	x1, [x21, #8]
	mov	x0, x19
	mov	x2, x23
	bl	_strlcpy
	mov	w24, #2
	cmp	w24, w22
	b.ge	LBB0_16
LBB0_10:
	mov	w23, #0
	mov	w8, w22
	add	x22, x21, w24, uxtw #3
	sub	x24, x8, w24, uxtw
Lloh17:
	adrp	x21, l_.str.3@PAGE
Lloh18:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x22, x22, #8
	subs	x24, x24, #1
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22]
	mov	x0, x20
	bl	_wake
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x2, [x22]
	mov	x0, x21
	mov	x1, x19
	bl	_warn
	mov	w23, #1
	b	LBB0_11
LBB0_14:
	mov	x0, x23
	bl	_exit
LBB0_15:
	mov	w24, #1
	cmp	w24, w22
	b.lt	LBB0_10
LBB0_16:
	bl	_usage
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_NAMESIZE,4,2                ; @IF_NAMESIZE
	.comm	__PATH_BPF,4,2                  ; @_PATH_BPF
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot open bpf interface"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to determine ethernet interface"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot bind to interface `%s'"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot send Wake on LAN frame over `%s' to `%s'"

.subsections_via_symbols
