	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_acpi_get_wifi_pkg          ## -- Begin function iwl_acpi_get_wifi_pkg
	.p2align	4, 0x90
_iwl_acpi_get_wifi_pkg:                 ## @iwl_acpi_get_wifi_pkg
	.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
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpl	$2, %edx
	setl	%dil
	callq	_WARN_ON_ONCE
	movq	_EINVAL@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	(%r14), %rcx
	movq	_ACPI_TYPE_PACKAGE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_5
## %bb.2:
	cmpl	$2, %ecx
	jl	LBB0_5
## %bb.3:
	movq	8(%r14), %rax
	movq	(%rax), %rdx
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.4:
	cmpl	$2, %edx
	jge	LBB0_5
## %bb.6:
	movl	%edx, (%r15)
	movl	(%r14), %esi
	movq	_ENOENT@GOTPCREL(%rip), %r13
	cmpl	$2, %esi
	jl	LBB0_13
## %bb.7:
	movq	8(%r14), %rax
	movq	_ACPI_WIFI_DOMAIN@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r8
	addq	$16, %rax
	decq	%rsi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rax
	decq	%rsi
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	cmpq	%rcx, %rdi
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%ebx, %edi
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rax), %rdi
	movq	(%rdi), %rdi
	cmpq	%rdx, %rdi
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	%edi, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_12
## %bb.14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_IWL_DEBUG_DEV_RADIO
LBB0_13:
	xorl	%edi, %edi
	subl	(%r13), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_TYPE_PACKAGE,8,3          ## @ACPI_TYPE_PACKAGE
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported packages structure\n"

	.comm	_ACPI_WIFI_DOMAIN,8,3           ## @ACPI_WIFI_DOMAIN
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_acpi_get_wifi_pkg          ; -- Begin function iwl_acpi_get_wifi_pkg
	.p2align	2
_iwl_acpi_get_wifi_pkg:                 ; @iwl_acpi_get_wifi_pkg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	cmp	w2, #2
	cset	w0, lt
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ACPI_TYPE_PACKAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_TYPE_PACKAGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w8, #2, #8, eq
	b.ge	LBB0_5
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_IWL_DEBUG_DEV_RADIO
LBB0_3:
Lloh5:
	adrp	x10, _EINVAL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x10]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	ldr	x9, [x20, #8]
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	w9, #2, #0, eq
	b.ge	LBB0_2
; %bb.6:
	str	w9, [x21]
	ldr	w10, [x20]
	cmp	w10, #2
	b.lt	LBB0_13
; %bb.7:
Lloh10:
	adrp	x11, _ACPI_WIFI_DOMAIN@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ACPI_WIFI_DOMAIN@GOTPAGEOFF]
	ldr	x12, [x20, #8]
Lloh12:
	ldr	x11, [x11]
	add	x0, x12, #16
	sub	x12, x10, #1
Lloh13:
	adrp	x10, _ENOENT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ENOENT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x0, #16
	subs	x12, x12, #1
	b.eq	LBB0_4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x0]
	cmp	x13, x8
	ccmp	w13, w19, #0, eq
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x13, [x0, #8]
	ldr	x13, [x13]
	cmp	x13, x9
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x11, w13, sxtw
	b.ne	LBB0_8
; %bb.12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh15:
	adrp	x10, _ENOENT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ENOENT@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_TYPE_PACKAGE,8,3          ; @ACPI_TYPE_PACKAGE
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported packages structure\n"

	.comm	_ACPI_WIFI_DOMAIN,8,3           ; @ACPI_WIFI_DOMAIN
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
