	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___wpad_disconnectCB            ## -- Begin function __wpad_disconnectCB
	.p2align	4, 0x90
___wpad_disconnectCB:                   ## @__wpad_disconnectCB
	.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	___wpads_inited@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_WPAD_STATE_ENABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	___wpad_devs@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	20(%rax), %esi
	movl	16(%rax), %edx
	movl	12(%rax), %ecx
	movl	8(%rax), %r8d
	movl	(%rax), %edi
	movl	4(%rax), %r9d
	movl	%edi, (%rsp)
	movq	%r12, %rdi
	callq	_BD_ADDR
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bd_addr_cmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_9
LBB0_4:
	movq	_DISCONNECT_BATTERY_DIED@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	callq	___wpad_batcb
	jmp	LBB0_9
LBB0_6:
	movq	_DISCONNECT_POWER_OFF@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_9
## %bb.7:
	movl	%ebx, %edi
	callq	___wpad_powcb
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___wpads_inited,8,3             ## @__wpads_inited
	.comm	_WPAD_STATE_ENABLED,8,3         ## @WPAD_STATE_ENABLED
	.comm	___wpad_devs,16,3               ## @__wpad_devs
	.comm	_DISCONNECT_BATTERY_DIED,8,3    ## @DISCONNECT_BATTERY_DIED
	.comm	_DISCONNECT_POWER_OFF,8,3       ## @DISCONNECT_POWER_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___wpad_disconnectCB            ; -- Begin function __wpad_disconnectCB
	.p2align	2
___wpad_disconnectCB:                   ; @__wpad_disconnectCB
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, ___wpads_inited@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___wpads_inited@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _WPAD_STATE_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WPAD_STATE_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x22, ___wpad_devs@GOTPAGE
Lloh7:
	ldr	x22, [x22, ___wpad_devs@GOTPAGEOFF]
	ldr	w10, [x22]
	cmp	x8, x9
	ccmp	w10, #1, #8, eq
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x20, lsl #3]
	ldp	w2, w1, [x8, #16]
	ldp	w4, w3, [x8, #8]
	ldp	w6, w5, [x8]
	add	x0, sp, #8
	bl	_BD_ADDR
	add	x1, sp, #8
	mov	x0, x21
	bl	_bd_addr_cmp
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_2
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, _DISCONNECT_BATTERY_DIED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DISCONNECT_BATTERY_DIED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	___wpad_batcb
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _DISCONNECT_POWER_OFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DISCONNECT_POWER_OFF@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	___wpad_powcb
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	___wpads_inited,8,3             ; @__wpads_inited
	.comm	_WPAD_STATE_ENABLED,8,3         ; @WPAD_STATE_ENABLED
	.comm	___wpad_devs,16,3               ; @__wpad_devs
	.comm	_DISCONNECT_BATTERY_DIED,8,3    ; @DISCONNECT_BATTERY_DIED
	.comm	_DISCONNECT_POWER_OFF,8,3       ; @DISCONNECT_POWER_OFF
.subsections_via_symbols
