	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_adb_send
_pmu_adb_send:                          ## @pmu_adb_send
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -180(%rbp)                ## 4-byte Spill
	movq	%rcx, %r13
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_device_get_softc
	movq	%rax, %r12
	movl	%r14d, -112(%rbp)
	movl	$0, -108(%rbp)
	movl	%ebx, -104(%rbp)
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.1:
	leaq	-100(%rbp), %rdi
	movl	%ebx, %edx
	shlq	$2, %rdx
	movq	%r13, %rsi
	callq	_memcpy
LBB0_2:
	movq	%r12, %rdi
	callq	_mtx_lock
	movq	_PMU_ADB_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$3, %ebx
	leaq	-112(%rbp), %rcx
	leaq	-176(%rbp), %r9
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	$16, %r8d
	callq	_pmu_send
	movq	%r12, %rdi
	callq	_mtx_unlock
	cmpl	$0, -180(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movl	%r15d, %edi
	callq	_pmu_poll
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PMU_ADB_CMD,4,2                ## @PMU_ADB_CMD
	.no_dead_strip	_pmu_adb_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmu_adb_send
_pmu_adb_send:                          ; @pmu_adb_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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, x4
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_device_get_softc
	mov	x21, x0
	stp	w24, wzr, [sp, #72]
	str	w22, [sp, #80]
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.1:
	add	x8, sp, #72
	add	x0, x8, #12
	mov	w8, w22
	lsl	x2, x8, #2
	mov	x1, x23
	bl	_memcpy
LBB0_2:
	mov	x0, x21
	bl	_mtx_lock
Lloh3:
	adrp	x8, _PMU_ADB_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMU_ADB_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w2, w22, #3
	add	x3, sp, #72
	add	x5, sp, #8
	mov	x0, x21
	mov	w4, #16
	bl	_pmu_send
	mov	x0, x21
	bl	_mtx_unlock
	cbz	w20, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_pmu_poll
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PMU_ADB_CMD,4,2                ; @PMU_ADB_CMD
	.no_dead_strip	_pmu_adb_send
.subsections_via_symbols
