	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_acpi_get_pwr_limit         ## -- Begin function iwl_acpi_get_pwr_limit
	.p2align	4, 0x90
_iwl_acpi_get_pwr_limit:                ## @iwl_acpi_get_pwr_limit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ACPI_SPLC_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iwl_acpi_get_object
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_ACPI_SPLC_WIFI_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_acpi_get_wifi_pkg
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	cmpl	$0, -28(%rbp)
	jne	LBB0_5
## %bb.4:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	cmoveq	%rax, %rbx
LBB0_5:
	movq	%r14, %rdi
	callq	_kfree
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_SPLC_METHOD,4,2           ## @ACPI_SPLC_METHOD
	.comm	_ACPI_SPLC_WIFI_DATA_SIZE,4,2   ## @ACPI_SPLC_WIFI_DATA_SIZE
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_acpi_get_pwr_limit         ; -- Begin function iwl_acpi_get_pwr_limit
	.p2align	2
_iwl_acpi_get_pwr_limit:                ; @iwl_acpi_get_pwr_limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _ACPI_SPLC_METHOD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_SPLC_METHOD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_iwl_acpi_get_object
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _ACPI_SPLC_WIFI_DATA_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_SPLC_WIFI_DATA_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_acpi_get_wifi_pkg
	mov	x20, x0
	bl	_IS_ERR
	ldr	w8, [sp, #12]
	cmp	x0, #0
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_4
; %bb.3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x20, x8, xzr, eq
LBB0_5:
	mov	x0, x19
	bl	_kfree
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_SPLC_METHOD,4,2           ; @ACPI_SPLC_METHOD
	.comm	_ACPI_SPLC_WIFI_DATA_SIZE,4,2   ; @ACPI_SPLC_WIFI_DATA_SIZE
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
.subsections_via_symbols
