	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_mad_reg_req
_remove_mad_reg_req:                    ## @remove_mad_reg_req
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r13
	movq	8(%rdi), %rcx
	movq	(%rcx), %rbx
	movl	12(%rax), %edi
	callq	_convert_mgmt_class
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movq	16(%r15), %rax
	movq	(%rax,%r14,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_remove_methods_mad_agent
	movq	%rbx, %rdi
	callq	_check_method_table
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_kfree
	movq	16(%r15), %rax
	movq	$0, (%rax,%r14,8)
	movq	%r15, %rdi
	callq	_check_class_table
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_kfree
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	$0, 8(%rax,%rcx)
LBB0_6:
	movq	%r14, %rdi
	callq	_is_vendor_class
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	movq	(%r13), %rax
	movl	12(%rax), %edi
	callq	_vendor_class_index
	movq	%rax, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	(%r13), %rax
	movq	(%rax), %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %r14
	testq	%r14, %r14
	je	LBB0_15
## %bb.8:
	movq	(%r14), %rcx
	movq	(%rcx,%r15,8), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.9:
	movl	8(%rax), %esi
	movq	%r12, %rdi
	callq	_find_vendor_oui
	testl	%eax, %eax
	js	LBB0_15
## %bb.10:
	movq	16(%r12), %rcx
	movl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_remove_methods_mad_agent
	movq	%rbx, %rdi
	callq	_check_method_table
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	%rbx, %rdi
	callq	_kfree
	movq	16(%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rax,%rcx,8)
	movq	8(%r12), %rax
	movl	(%rax,%rcx,4), %edi
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_check_vendor_class
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:
	movq	%r12, %rdi
	callq	_kfree
	movq	(%r14), %rax
	movq	$0, (%rax,%r15,8)
	movq	%r14, %rdi
	callq	_check_vendor_table
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_kfree
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	$0, (%rax,%rcx)
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_remove_mad_reg_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_mad_reg_req
_remove_mad_reg_req:                    ; @remove_mad_reg_req
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
	cbz	x8, LBB0_15
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #8]
	ldr	x25, [x9]
	ldr	w0, [x8, #12]
	bl	_convert_mgmt_class
	mov	x20, x0
	ldr	x8, [x25]
	ldr	x9, [x19]
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #4
	ldr	x21, [x8, #8]
	cbz	x21, LBB0_6
; %bb.2:
	ldr	x8, [x21, #16]
	ldr	x22, [x8, x20, lsl #3]
	cbz	x22, LBB0_6
; %bb.3:
	mov	x0, x22
	mov	x1, x19
	bl	_remove_methods_mad_agent
	mov	x0, x22
	bl	_check_method_table
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x22
	bl	_kfree
	ldr	x8, [x21, #16]
	str	xzr, [x8, x20, lsl #3]
	mov	x0, x21
	bl	_check_class_table
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_kfree
	ldr	x8, [x25]
	ldr	x9, [x19]
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #4
	str	xzr, [x8, #8]
LBB0_6:
	mov	x0, x20
	bl	_is_vendor_class
	cbz	w0, LBB0_15
; %bb.7:
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	bl	_vendor_class_index
	ldr	x9, [x25]
	ldr	x8, [x19]
	ldr	x10, [x8]
	lsl	x10, x10, #4
	ldr	x20, [x9, x10]
	cbz	x20, LBB0_15
; %bb.8:
	mov	x21, x0
	ldr	x9, [x20]
	ldr	x22, [x9, x0, lsl #3]
	cbz	x22, LBB0_15
; %bb.9:
	ldr	w1, [x8, #8]
	mov	x0, x22
	bl	_find_vendor_oui
	tbnz	w0, #31, LBB0_15
; %bb.10:
	mov	x23, x0
	ldr	x8, [x22, #16]
	ldr	x24, [x8, w0, uxtw #3]
	cbz	x24, LBB0_15
; %bb.11:
	mov	x0, x24
	mov	x1, x19
	bl	_remove_methods_mad_agent
	mov	x0, x24
	bl	_check_method_table
	cbnz	w0, LBB0_15
; %bb.12:
	mov	w23, w23
	mov	x0, x24
	bl	_kfree
	ldr	x8, [x22, #16]
	str	xzr, [x8, x23, lsl #3]
	ldr	x8, [x22, #8]
	ldr	w0, [x8, x23, lsl #2]
	mov	w1, #0
	mov	w2, #3
	bl	_memset
	mov	x0, x22
	bl	_check_vendor_class
	cbnz	w0, LBB0_15
; %bb.13:
	mov	x0, x22
	bl	_kfree
	ldr	x8, [x20]
	str	xzr, [x8, x21, lsl #3]
	mov	x0, x20
	bl	_check_vendor_table
	cbnz	w0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_kfree
	ldr	x8, [x25]
	ldr	x9, [x19]
	ldr	x9, [x9]
	lsl	x9, x9, #4
	str	xzr, [x8, x9]
LBB0_15:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_remove_mad_reg_req
.subsections_via_symbols
