	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_set_tx_power
_ipw_set_tx_power:                      ## @ipw_set_tx_power
	.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	%rdi, %r14
	movq	8(%rdi), %rdi
	callq	_libipw_get_geo
	movq	%rax, %r12
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_IPW_G_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r12), %ecx
	movl	%ecx, -64(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	-56(%rbp), %rdx
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%rdx,%rbx)
	incq	%r15
	movslq	%ecx, %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	8(%rax,%rbx), %rdi
	movl	(%rax,%rbx), %eax
	movl	%eax, 8(%rdx,%rbx)
	movq	(%r14), %rax
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rsi
	callq	_min
	movq	-56(%rbp), %rdx
	movl	(%r12), %ecx
	jmp	LBB0_4
LBB0_5:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ipw_send_tx_power
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:
	movq	_IPW_B_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ipw_send_tx_power
	testq	%rax, %rax
	je	LBB0_7
LBB0_14:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	8(%r14), %rax
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.8:
	movq	_IPW_A_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	4(%r12), %ecx
	movl	%ecx, -64(%rbp)
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.9:
	movq	-56(%rbp), %rdx
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, (%rdx,%rbx)
	incq	%r13
	movslq	%ecx, %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	8(%rax,%rbx), %rdi
	movl	(%rax,%rbx), %eax
	movl	%eax, 8(%rdx,%rbx)
	movq	(%r14), %rax
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rsi
	callq	_min
	movq	-56(%rbp), %rdx
	movl	-64(%rbp), %ecx
	jmp	LBB0_12
LBB0_13:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ipw_send_tx_power
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_IPW_G_MODE,4,2                 ## @IPW_G_MODE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IPW_B_MODE,4,2                 ## @IPW_B_MODE
	.comm	_IPW_A_MODE,4,2                 ## @IPW_A_MODE
	.no_dead_strip	_ipw_set_tx_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_set_tx_power
_ipw_set_tx_power:                      ; @ipw_set_tx_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x0, [x0, #8]
	bl	_libipw_get_geo
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _IPW_G_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPW_G_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w8, [x20]
	str	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	ldr	x9, [sp, #16]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x1, [x9, x21]
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #16]
	add	x10, x10, x21
	ldr	x0, [x10, #8]
	ldr	w10, [x10]
	add	x11, x9, x21
	str	w10, [x11, #8]
	ldr	x1, [x19]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_min
	mov	x1, x0
	ldr	x9, [sp, #16]
	ldr	w8, [x20]
	b	LBB0_2
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ipw_send_tx_power
	cbnz	x0, LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _IPW_B_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPW_B_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ipw_send_tx_power
	cbz	x0, LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.10:
Lloh9:
	adrp	x8, _IPW_A_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IPW_A_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w8, [x20, #4]
	str	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x21, #0
	mov	x22, #0
	ldr	x9, [sp, #16]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	str	x1, [x9, x21]
	add	x22, x22, #1
	add	x21, x21, #16
	cmp	x22, w8, sxtw
	b.ge	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #8]
	add	x10, x10, x21
	ldr	x0, [x10, #8]
	ldr	w10, [x10]
	add	x11, x9, x21
	str	w10, [x11, #8]
	ldr	x1, [x19]
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_min
	mov	x1, x0
	ldr	x9, [sp, #16]
	ldr	w8, [sp, #8]
	b	LBB0_12
LBB0_15:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ipw_send_tx_power
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_16:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IPW_G_MODE,4,2                 ; @IPW_G_MODE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IPW_B_MODE,4,2                 ; @IPW_B_MODE
	.comm	_IPW_A_MODE,4,2                 ; @IPW_A_MODE
	.no_dead_strip	_ipw_set_tx_power
.subsections_via_symbols
