	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_ifnet_ioctl_set            ## -- Begin function mac_ifnet_ioctl_set
	.p2align	4, 0x90
_mac_ifnet_ioctl_set:                   ## @mac_ifnet_ioctl_set
	.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	_mac_labeled@GOTPCREL(%rip), %rax
	movq	_MPC_OBJECT_IFNET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_ifr_data_get_ptr
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	movl	$8, %edx
	callq	_copyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_mac_check_structmac_consistent
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movl	-48(%rbp), %edi
	movq	_M_MACTEMP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, %r13
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %edi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_copyinstr
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	callq	_mac_ifnet_label_alloc
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_mac_ifnet_internalize_label
	movl	%eax, %ebx
	movq	_M_MACTEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_free
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.8:
	movq	_PRIV_NET_SETIFMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_priv_check_cred
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_mac_ifnet_label_free
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	callq	_MAC_IFNET_LOCK
	movq	_ifnet_check_relabel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %r8
	callq	_MAC_POLICY_CHECK_NOSLEEP
	movq	_ifnet_relabel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %r8
	callq	_MAC_POLICY_PERFORM_NOSLEEP
	movq	%r14, %rdi
	callq	_MAC_IFNET_UNLOCK
	movq	%r15, %rdi
	callq	_mac_ifnet_label_free
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_mac_labeled,4,2                ## @mac_labeled
	.comm	_MPC_OBJECT_IFNET,4,2           ## @MPC_OBJECT_IFNET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M_MACTEMP,4,2                  ## @M_MACTEMP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_PRIV_NET_SETIFMAC,4,2          ## @PRIV_NET_SETIFMAC
	.comm	_ifnet_check_relabel,4,2        ## @ifnet_check_relabel
	.comm	_ifnet_relabel,4,2              ## @ifnet_relabel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_ifnet_ioctl_set            ; -- Begin function mac_ifnet_ioctl_set
	.p2align	2
_mac_ifnet_ioctl_set:                   ; @mac_ifnet_ioctl_set
	.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
Lloh0:
	adrp	x8, _mac_labeled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mac_labeled@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MPC_OBJECT_IFNET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPC_OBJECT_IFNET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_ifr_data_get_ptr
	add	x1, sp, #8
	mov	w2, #8
	bl	_copyin
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
	add	x0, sp, #8
	bl	_mac_check_structmac_consistent
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w0, [sp, #8]
Lloh6:
	adrp	x24, _M_MACTEMP@GOTPAGE
Lloh7:
	ldr	x24, [x24, _M_MACTEMP@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh8:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_malloc
	mov	x23, x0
	ldp	w2, w0, [sp, #8]
	mov	x1, x23
	mov	x3, #0
	bl	_copyinstr
	cbz	w0, LBB0_7
; %bb.4:
	mov	x22, x0
	ldr	w1, [x24]
	mov	x0, x23
	bl	_free
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
LBB0_6:
	mov	x0, x22
	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_7:
	bl	_mac_ifnet_label_alloc
	mov	x21, x0
	mov	x1, x23
	bl	_mac_ifnet_internalize_label
	mov	x22, x0
	ldr	w1, [x24]
	mov	x0, x23
	bl	_free
	cbnz	w22, LBB0_10
; %bb.8:
Lloh14:
	adrp	x8, _PRIV_NET_SETIFMAC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PRIV_NET_SETIFMAC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_priv_check_cred
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_MAC_IFNET_LOCK
Lloh17:
	adrp	x8, _ifnet_check_relabel@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ifnet_check_relabel@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w3, [x19]
	mov	x1, x20
	mov	x2, x19
	mov	x4, x21
	bl	_MAC_POLICY_CHECK_NOSLEEP
Lloh20:
	adrp	x8, _ifnet_relabel@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ifnet_relabel@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w3, [x19]
	mov	x1, x20
	mov	x2, x19
	mov	x4, x21
	bl	_MAC_POLICY_PERFORM_NOSLEEP
	mov	x0, x19
	bl	_MAC_IFNET_UNLOCK
LBB0_10:
	mov	x0, x21
	bl	_mac_ifnet_label_free
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_mac_labeled,4,2                ; @mac_labeled
	.comm	_MPC_OBJECT_IFNET,4,2           ; @MPC_OBJECT_IFNET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_MACTEMP,4,2                  ; @M_MACTEMP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_PRIV_NET_SETIFMAC,4,2          ; @PRIV_NET_SETIFMAC
	.comm	_ifnet_check_relabel,4,2        ; @ifnet_check_relabel
	.comm	_ifnet_relabel,4,2              ; @ifnet_relabel
.subsections_via_symbols
