	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_mac_addr_mask
_get_mac_addr_mask:                     ## @get_mac_addr_mask
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%r12, %rdi
	callq	_strdup
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_strsep
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strspn
	cmpq	%r15, %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_ether_aton
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_errx
	xorl	%eax, %eax
LBB0_9:
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_memmove
	jmp	LBB0_11
LBB0_10:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_errx
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
LBB0_11:
	movq	-64(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_12
## %bb.15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	notq	%rax
	addq	%r15, %rax
	cmpb	$47, (%r12,%rax)
	jne	LBB0_25
## %bb.16:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rbx
	movq	-72(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_17
LBB0_19:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_errx
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
	testq	%rbx, %rbx
	jle	LBB0_30
## %bb.21:
	testl	%eax, %eax
	jle	LBB0_30
## %bb.22:
	movl	$8, %ecx
	subl	%ebx, %ecx
	movl	$1, %esi
	movl	$255, %r8d
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	$-1, %eax
	shll	%cl, %eax
	cmpq	$8, %rbx
	cmovael	%r8d, %eax
	movl	%eax, -4(%r13,%rsi,4)
	movl	(%r9), %eax
	jbe	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	addq	$-8, %rbx
	leaq	1(%rsi), %rdx
	addl	$8, %ecx
	movslq	%eax, %rdi
	cmpq	%rdi, %rsi
	movq	%rdx, %rsi
	jl	LBB0_23
	jmp	LBB0_30
LBB0_1:
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_34
## %bb.2:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%r13,%rcx,4)
	movl	$0, (%r14,%rcx,4)
	incq	%rcx
	movslq	(%rax), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_3
	jmp	LBB0_34
LBB0_12:
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_33
## %bb.13:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	$255, (%r13,%rdx,4)
	incq	%rdx
	movslq	(%rcx), %rax
	cmpq	%rax, %rdx
	jl	LBB0_14
	jmp	LBB0_30
LBB0_25:
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strspn
	cmpq	%rbx, %rax
	jne	LBB0_28
## %bb.26:
	movq	%r15, %rdi
	callq	_ether_aton
	movq	%rax, %rsi
	testq	%rax, %rax
	jne	LBB0_29
## %bb.27:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_28:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_errx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_29:
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_memmove
	movl	(%rbx), %eax
LBB0_30:
	testl	%eax, %eax
	jle	LBB0_33
## %bb.31:
	xorl	%eax, %eax
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rax,4), %edx
	andl	%edx, (%r14,%rax,4)
	incq	%rax
	movslq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_32
LBB0_33:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_34:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	testq	%rbx, %rbx
	js	LBB0_19
## %bb.18:
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, %rcx
	shlq	$3, %rcx
	cmpq	%rcx, %rbx
	jle	LBB0_20
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789abcdefABCDEF:"

L_.str.1:                               ## @.str.1
	.asciz	"any"

	.comm	_ETHER_ADDR_LEN,4,2             ## @ETHER_ADDR_LEN
L_.str.2:                               ## @.str.2
	.asciz	"&/"

	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
L_.str.3:                               ## @.str.3
	.asciz	"Incorrect MAC address"

L_.str.4:                               ## @.str.4
	.asciz	"Incorrect mask length"

L_.str.5:                               ## @.str.5
	.asciz	"Incorrect mask"

	.no_dead_strip	_get_mac_addr_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_mac_addr_mask
_get_mac_addr_mask:                     ; @get_mac_addr_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_20
; %bb.1:
	mov	x0, x22
	bl	_strdup
	mov	x21, x0
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, sp
	bl	_strsep
	str	x0, [sp, #8]
	cbz	x0, LBB0_11
; %bb.2:
	mov	x23, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_11
; %bb.3:
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_strspn
	cmp	x0, x24
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x23
	bl	_ether_aton
	mov	x23, x0
	cbnz	x0, LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
	mov	x23, #0
LBB0_6:
Lloh11:
	adrp	x8, _ETHER_ADDR_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETHER_ADDR_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	_memmove
	ldr	x24, [sp]
	cbnz	x24, LBB0_12
LBB0_7:
Lloh14:
	adrp	x8, _ETHER_ADDR_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETHER_ADDR_LEN@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_30
; %bb.8:
	mov	x9, #0
	mov	w10, #255
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w10, [x19, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	cmp	x9, x11
	b.lt	LBB0_9
; %bb.10:
	mov	x8, x11
	b	LBB0_27
LBB0_11:
Lloh16:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_errx
                                        ; implicit-def: $x23
	ldr	x24, [sp]
	cbz	x24, LBB0_7
LBB0_12:
	mvn	x8, x21
	add	x8, x24, x8
	ldrb	w8, [x22, x8]
	cmp	w8, #47
	b.ne	LBB0_23
; %bb.13:
	add	x1, sp, #8
	mov	x0, x24
	mov	w2, #10
	bl	_strtol
	mov	x22, x0
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_32
LBB0_14:
Lloh21:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_errx
Lloh26:
	adrp	x8, _ETHER_ADDR_LEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETHER_ADDR_LEN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
LBB0_15:
	cmp	x22, #1
	b.lt	LBB0_27
; %bb.16:
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.17:
	mov	x9, #0
	mov	w8, #8
	sub	w10, w8, w22
	mov	w11, #-1
	mov	w12, #255
Lloh29:
	adrp	x13, _ETHER_ADDR_LEN@GOTPAGE
Lloh30:
	ldr	x13, [x13, _ETHER_ADDR_LEN@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	lsl	w8, w11, w10
	cmp	x22, #7
	csel	w8, w12, w8, hi
	str	w8, [x19, x9, lsl #2]
	ldr	w8, [x13]
	cmp	x22, #9
	b.lo	LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	sub	x22, x22, #8
	add	x9, x9, #1
	sxtw	x14, w8
	add	w10, w10, #8
	cmp	x9, x14
	b.lt	LBB0_18
	b	LBB0_27
LBB0_20:
Lloh31:
	adrp	x8, _ETHER_ADDR_LEN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ETHER_ADDR_LEN@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_31
; %bb.21:
	mov	x9, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x9, #2
	str	wzr, [x19, x10]
	str	wzr, [x20, x10]
	add	x9, x9, #1
	ldrsw	x10, [x8]
	cmp	x9, x10
	b.lt	LBB0_22
	b	LBB0_31
LBB0_23:
	mov	x0, x24
	bl	_strlen
	mov	x22, x0
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_strspn
	cmp	x0, x22
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x24
	bl	_ether_aton
	mov	x23, x0
	cbnz	x0, LBB0_26
LBB0_25:
Lloh35:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_errx
LBB0_26:
Lloh40:
	adrp	x22, _ETHER_ADDR_LEN@GOTPAGE
Lloh41:
	ldr	x22, [x22, _ETHER_ADDR_LEN@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x23
	bl	_memmove
	ldr	w8, [x22]
LBB0_27:
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.28:
	mov	x8, #0
Lloh42:
	adrp	x9, _ETHER_ADDR_LEN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ETHER_ADDR_LEN@GOTPAGEOFF]
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x19, x10]
	ldr	w12, [x20, x10]
	and	w11, w12, w11
	str	w11, [x20, x10]
	add	x8, x8, #1
	ldrsw	x10, [x9]
	cmp	x8, x10
	b.lt	LBB0_29
LBB0_30:
	mov	x0, x21
	bl	_free
LBB0_31:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_32:
	tbnz	x22, #63, LBB0_14
; %bb.33:
Lloh44:
	adrp	x8, _ETHER_ADDR_LEN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ETHER_ADDR_LEN@GOTPAGEOFF]
Lloh46:
	ldrsw	x8, [x8]
	lsl	x9, x8, #3
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	cmp	x22, x9
	b.le	LBB0_15
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789abcdefABCDEF:"

l_.str.1:                               ; @.str.1
	.asciz	"any"

	.comm	_ETHER_ADDR_LEN,4,2             ; @ETHER_ADDR_LEN
l_.str.2:                               ; @.str.2
	.asciz	"&/"

	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
l_.str.3:                               ; @.str.3
	.asciz	"Incorrect MAC address"

l_.str.4:                               ; @.str.4
	.asciz	"Incorrect mask length"

l_.str.5:                               ; @.str.5
	.asciz	"Incorrect mask"

	.no_dead_strip	_get_mac_addr_mask
.subsections_via_symbols
