	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_convert_output_limits
_p54_convert_output_limits:             ## @p54_convert_output_limits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$1, %rdx
	jbe	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_wiphy_err
	jmp	LBB0_1
LBB0_5:
	movslq	4(%rbx), %rax
	leaq	2(,%rax,4), %rcx
	cmpq	%rdx, %rcx
	jbe	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rdi), %r14
	shlq	$2, %rax
	addl	$32, %eax
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kmalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	$0, 16(%rax)
	movslq	4(%rbx), %rcx
	movl	%ecx, (%rax)
	movl	$4, 4(%rax)
	shlq	$2, %rcx
	movq	%rcx, 24(%rax)
	movl	8(%rax), %edi
	movl	4(%rbx), %edx
	addq	$8, %rbx
	shll	$2, %edx
	movq	%rbx, %rsi
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown output power db revision:%x\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_p54_convert_output_limits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_convert_output_limits
_p54_convert_output_limits:             ; @p54_convert_output_limits
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	x2, #1
	b.ls	LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_wiphy_err
	b	LBB0_4
LBB0_3:
	ldrsw	x8, [x19, #4]
	mov	w9, #2
	bfi	x9, x8, #2, #62
	cmp	x9, x2
	b.ls	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x20, [x0, #8]
	lsl	x8, x8, #2
	add	w0, w8, #32
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_kmalloc
	str	x0, [x20]
	cbz	x0, LBB0_9
; %bb.8:
	ldrsw	x8, [x19, #4]
	mov	w9, #4
	stp	w8, w9, [x0]
	lsl	x8, x8, #2
	stp	xzr, x8, [x0, #16]
	ldr	w0, [x0, #8]
	add	x1, x19, #8
	ldr	w8, [x19, #4]
	lsl	w2, w8, #2
	bl	_memcpy
	mov	w0, #0
	b	LBB0_6
LBB0_9:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown output power db revision:%x\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_p54_convert_output_limits
.subsections_via_symbols
