	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_phy_db_send_all_channel_groups
_iwl_phy_db_send_all_channel_groups:    ## @iwl_phy_db_send_all_channel_groups
	.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
	testq	%rdx, %rdx
	jle	LBB0_9
## %bb.1:
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_iwl_phy_db_get_section
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_iwl_send_phy_db_cmd
	movl	(%r12), %edi
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	callq	_IWL_DEBUG_INFO
	jmp	LBB0_8
LBB0_9:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_IWL_ERR
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't SEND phy_db section %d (%d), err %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sent PHY_DB HCMD, type = %d num = %d\n"

	.no_dead_strip	_iwl_phy_db_send_all_channel_groups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_phy_db_send_all_channel_groups
_iwl_phy_db_send_all_channel_groups:    ; @iwl_phy_db_send_all_channel_groups
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	x2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x20, #0
Lloh0:
	adrp	x23, l_.str.1@PAGE
Lloh1:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x21, x20
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_iwl_phy_db_get_section
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x0, #4]
	cbz	w2, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x0]
	mov	x0, x22
	mov	x1, x19
	bl	_iwl_send_phy_db_cmd
	mov	x24, x0
	ldr	w0, [x22]
	cbnz	w24, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x23
	mov	x2, x19
	mov	x3, x20
	bl	_IWL_DEBUG_INFO
	b	LBB0_2
LBB0_7:
	mov	w24, #0
	b	LBB0_10
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	mov	x4, x24
	bl	_IWL_ERR
LBB0_10:
	mov	x0, x24
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't SEND phy_db section %d (%d), err %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sent PHY_DB HCMD, type = %d num = %d\n"

	.no_dead_strip	_iwl_phy_db_send_all_channel_groups
.subsections_via_symbols
