	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lomac_ifnet_check_relabel
_lomac_ifnet_check_relabel:             ## @lomac_ifnet_check_relabel
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_SLOT
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_SLOT
	movq	%rax, %rbx
	movq	_MAC_LOMAC_FLAGS_BOTH@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_lomac_atmostflags
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	callq	_lomac_subject_privileged
	testl	%eax, %eax
	je	LBB0_2
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.4:
	movq	_MAC_LOMAC_FLAG_SINGLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_lomac_copy_single
	movl	(%rbx), %eax
LBB0_6:
	movq	_MAC_LOMAC_FLAG_RANGE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_lomac_copy_range
LBB0_8:
	movq	_PRIV_NET_SETIFMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_priv_check_cred
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_LOMAC_FLAGS_BOTH,4,2       ## @MAC_LOMAC_FLAGS_BOTH
	.comm	_MAC_LOMAC_FLAG_SINGLE,4,2      ## @MAC_LOMAC_FLAG_SINGLE
	.comm	_MAC_LOMAC_FLAG_RANGE,4,2       ## @MAC_LOMAC_FLAG_RANGE
	.comm	_PRIV_NET_SETIFMAC,4,2          ## @PRIV_NET_SETIFMAC
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_lomac_ifnet_check_relabel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lomac_ifnet_check_relabel
_lomac_ifnet_check_relabel:             ; @lomac_ifnet_check_relabel
	.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	x21, x3
	mov	x19, x0
	ldr	x0, [x0]
	bl	_SLOT
	mov	x20, x0
	mov	x0, x21
	bl	_SLOT
	mov	x21, x0
Lloh0:
	adrp	x22, _MAC_LOMAC_FLAGS_BOTH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAC_LOMAC_FLAGS_BOTH@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_lomac_atmostflags
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x20
	bl	_lomac_subject_privileged
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
Lloh2:
	adrp	x9, _MAC_LOMAC_FLAG_SINGLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAC_LOMAC_FLAG_SINGLE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_lomac_copy_single
	ldr	w8, [x21]
LBB0_5:
Lloh5:
	adrp	x9, _MAC_LOMAC_FLAG_RANGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAC_LOMAC_FLAG_RANGE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_lomac_copy_range
LBB0_7:
Lloh8:
	adrp	x8, _PRIV_NET_SETIFMAC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PRIV_NET_SETIFMAC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_priv_check_cred
Lloh11:
	adrp	x8, _EPERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, wzr, w8, eq
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_LOMAC_FLAGS_BOTH,4,2       ; @MAC_LOMAC_FLAGS_BOTH
	.comm	_MAC_LOMAC_FLAG_SINGLE,4,2      ; @MAC_LOMAC_FLAG_SINGLE
	.comm	_MAC_LOMAC_FLAG_RANGE,4,2       ; @MAC_LOMAC_FLAG_RANGE
	.comm	_PRIV_NET_SETIFMAC,4,2          ; @PRIV_NET_SETIFMAC
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_lomac_ifnet_check_relabel
.subsections_via_symbols
