	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_wmi_rfkill2_refresh
_hp_wmi_rfkill2_refresh:                ## @hp_wmi_rfkill2_refresh
	.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	_HPWMI_WIRELESS2_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HPWMI_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	movl	$16, %r8d
	callq	_hp_wmi_perform_query
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	_rfkill2_count@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	movl	$0, %eax
	jle	LBB0_9
## %bb.2:
	movl	$16, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	addq	$24, %rbx
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_rfkill2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-16(%rax,%rbx), %r12
	cmpl	-64(%rbp), %r12d
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r15
	shlq	$4, %r12
	movq	(%r15,%r12), %rcx
	cmpq	-8(%rax,%rbx), %rcx
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax,%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r15,%r12), %edi
	callq	_IS_SWBLOCKED
	movl	%eax, %r13d
	movl	8(%r15,%r12), %edi
	callq	_IS_HWBLOCKED
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movq	_rfkill2_count@GOTPCREL(%rip), %r13
	movl	%eax, %edx
	callq	_rfkill_set_states
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPWMI_WIRELESS2_QUERY,4,2      ## @HPWMI_WIRELESS2_QUERY
	.comm	_HPWMI_READ,4,2                 ## @HPWMI_READ
	.comm	_rfkill2_count,4,2              ## @rfkill2_count
	.comm	_rfkill2,8,3                    ## @rfkill2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power configuration of the wireless devices unexpectedly changed\n"

	.no_dead_strip	_hp_wmi_rfkill2_refresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp_wmi_rfkill2_refresh
_hp_wmi_rfkill2_refresh:                ; @hp_wmi_rfkill2_refresh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _HPWMI_WIRELESS2_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPWMI_WIRELESS2_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _HPWMI_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HPWMI_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w3, #0
	mov	w4, #16
	bl	_hp_wmi_perform_query
	cbnz	w0, LBB0_9
; %bb.1:
Lloh6:
	adrp	x22, _rfkill2_count@GOTPAGE
Lloh7:
	ldr	x22, [x22, _rfkill2_count@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh8:
	adrp	x25, _rfkill2@GOTPAGE
Lloh9:
	ldr	x25, [x25, _rfkill2@GOTPAGEOFF]
Lloh10:
	adrp	x19, l_.str@PAGE
Lloh11:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_pr_warn
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #24
	cmp	x24, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	ldrsw	x8, [x9, x23]
	ldr	w10, [sp]
	cmp	w8, w10
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [sp, #8]
	lsl	x11, x8, #4
	ldr	x11, [x10, x11]
	add	x9, x9, x23
	ldr	x12, [x9, #8]
	cmp	x11, x12
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w20, [x9, #16]
	add	x26, x10, x8, lsl #4
	ldr	w0, [x26, #8]
	bl	_IS_SWBLOCKED
	mov	x21, x0
	ldr	w0, [x26, #8]
	bl	_IS_HWBLOCKED
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_rfkill_set_states
	b	LBB0_4
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HPWMI_WIRELESS2_QUERY,4,2      ; @HPWMI_WIRELESS2_QUERY
	.comm	_HPWMI_READ,4,2                 ; @HPWMI_READ
	.comm	_rfkill2_count,4,2              ; @rfkill2_count
	.comm	_rfkill2,8,3                    ; @rfkill2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power configuration of the wireless devices unexpectedly changed\n"

	.no_dead_strip	_hp_wmi_rfkill2_refresh
.subsections_via_symbols
