	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_eeprom_init_hw_params
_iwl_eeprom_init_hw_params:             ## @iwl_eeprom_init_hw_params
	.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, %r15
	movq	24(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	leaq	L_.str.4(%rip), %rax
	je	LBB0_4
## %bb.1:
	movq	16(%r15), %rcx
	cmpl	$0, 8(%rcx)
	je	LBB0_2
## %bb.9:
	leaq	L_.str.3(%rip), %r10
	cmpq	$0, 24(%rbx)
	movq	%r10, %rdx
	jne	LBB0_11
	jmp	LBB0_10
LBB0_4:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.4(%rip), %r10
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%r15, %rdi
	callq	_IWL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_6:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %r10
LBB0_10:
	movq	%rax, %rdx
LBB0_11:
	cmpq	$0, 16(%rbx)
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movq	%rcx, %r9
	xorl	%eax, %eax
	pushq	%rcx
	pushq	%r10
	callq	_IWL_DEBUG_INFO
	addq	$16, %rsp
	movl	4(%rbx), %edi
	callq	_num_of_ant
	movq	%rax, 8(%r15)
	movq	16(%r15), %rcx
	movl	$1, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_13
## %bb.12:
	movl	(%rbx), %edi
	callq	_num_of_ant
LBB0_13:
	movl	%eax, (%r15)
	movslq	4(%rbx), %rdx
	movslq	(%rbx), %rcx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_INFO
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid 11n configuration\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid device sku\n"

L_.str.2:                               ## @.str.2
	.asciz	"Device SKU: 24GHz %s %s, 52GHz %s %s, 11.n %s %s\n"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"NOT"

L_.str.5:                               ## @.str.5
	.asciz	"enabled"

L_.str.6:                               ## @.str.6
	.asciz	"Valid Tx ant: 0x%X, Valid Rx ant: 0x%X\n"

	.no_dead_strip	_iwl_eeprom_init_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_eeprom_init_hw_params
_iwl_eeprom_init_hw_params:             ; @iwl_eeprom_init_hw_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x9, [x20, #24]
Lloh0:
	adrp	x8, l_.str.3@PAGE
Lloh1:
	add	x8, x8, l_.str.3@PAGEOFF
	mov	x2, x8
	cbnz	x9, LBB0_10
	b	LBB0_9
LBB0_3:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_7
; %bb.4:
Lloh2:
	adrp	x2, l_.str.3@PAGE
Lloh3:
	add	x2, x2, l_.str.3@PAGEOFF
Lloh4:
	adrp	x8, l_.str.4@PAGE
Lloh5:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_IWL_ERR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_7:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_15
; %bb.8:
Lloh11:
	adrp	x8, l_.str.4@PAGE
Lloh12:
	add	x8, x8, l_.str.4@PAGEOFF
LBB0_9:
Lloh13:
	adrp	x2, l_.str.4@PAGE
Lloh14:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_10:
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
	ldr	x10, [x20, #16]
Lloh17:
	adrp	x11, l_.str.4@PAGE
Lloh18:
	add	x11, x11, l_.str.4@PAGEOFF
	cmp	x10, #0
	csel	x9, x11, x9, eq
Lloh19:
	adrp	x3, l_.str.5@PAGE
Lloh20:
	add	x3, x3, l_.str.5@PAGEOFF
	stp	x8, x3, [sp, #16]
	stp	x9, x3, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	ldr	w0, [x20, #4]
	bl	_num_of_ant
	str	x0, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	ldr	w0, [x20]
	bl	_num_of_ant
LBB0_13:
	str	w0, [x19]
	ldpsw	x3, x2, [x20]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid 11n configuration\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid device sku\n"

l_.str.2:                               ; @.str.2
	.asciz	"Device SKU: 24GHz %s %s, 52GHz %s %s, 11.n %s %s\n"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"NOT"

l_.str.5:                               ; @.str.5
	.asciz	"enabled"

l_.str.6:                               ; @.str.6
	.asciz	"Valid Tx ant: 0x%X, Valid Rx ant: 0x%X\n"

	.no_dead_strip	_iwl_eeprom_init_hw_params
.subsections_via_symbols
