	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_mad
_send_mad:                              ## @send_mad
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	%edx, %edi
	callq	_gfpflags_allow_blocking
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_idr_preload
LBB0_2:
	movq	_idr_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_query_idr@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_idr_alloc
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_idr_preload_end
LBB0_4:
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.5:
	movq	8(%r13), %rax
	movl	%r15d, (%rax)
	movq	8(%rax), %rax
	movq	%r13, (%rax)
	movl	%r14d, (%r13)
	movq	_IB_SA_ENABLE_LOCAL_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_ib_sa_disable_local_svc
LBB0_7:
	movq	8(%r13), %rdi
	xorl	%esi, %esi
	callq	_ib_post_send_mad
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	_idr_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_query_idr@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	callq	_idr_remove
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_idr_lock,4,2                   ## @idr_lock
	.comm	_query_idr,4,2                  ## @query_idr
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.comm	_IB_SA_ENABLE_LOCAL_SERVICE,4,2 ## @IB_SA_ENABLE_LOCAL_SERVICE
	.no_dead_strip	_send_mad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_mad
_send_mad:                              ; @send_mad
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	bl	_gfpflags_allow_blocking
	mov	x22, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_idr_preload
LBB0_2:
Lloh0:
	adrp	x23, _idr_lock@GOTPAGE
Lloh1:
	ldr	x23, [x23, _idr_lock@GOTPAGEOFF]
	mov	x0, x23
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _GFP_NOWAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_NOWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
Lloh5:
	adrp	x0, _query_idr@GOTPAGE
Lloh6:
	ldr	x0, [x0, _query_idr@GOTPAGEOFF]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	bl	_idr_alloc
	mov	x20, x0
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	cbz	w22, LBB0_4
; %bb.3:
	bl	_idr_preload_end
LBB0_4:
	tbnz	w20, #31, LBB0_9
; %bb.5:
	ldr	x8, [x19, #8]
	str	w21, [x8]
	ldr	x8, [x8, #8]
	str	x19, [x8]
	str	w20, [x19]
	ldr	w8, [x19, #4]
Lloh7:
	adrp	x9, _IB_SA_ENABLE_LOCAL_SERVICE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IB_SA_ENABLE_LOCAL_SERVICE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_ib_sa_disable_local_svc
LBB0_7:
	ldr	x0, [x19, #8]
	mov	x1, #0
	bl	_ib_post_send_mad
	cbz	w0, LBB0_9
; %bb.8:
	mov	x19, x0
Lloh10:
	adrp	x21, _idr_lock@GOTPAGE
Lloh11:
	ldr	x21, [x21, _idr_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh12:
	adrp	x0, _query_idr@GOTPAGE
Lloh13:
	ldr	x0, [x0, _query_idr@GOTPAGEOFF]
	mov	x1, x20
	bl	_idr_remove
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x20, x19
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_idr_lock,4,2                   ; @idr_lock
	.comm	_query_idr,4,2                  ; @query_idr
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.comm	_IB_SA_ENABLE_LOCAL_SERVICE,4,2 ; @IB_SA_ENABLE_LOCAL_SERVICE
	.no_dead_strip	_send_mad
.subsections_via_symbols
