	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrf24j40_set_txpower
_mrf24j40_set_txpower:                  ## @mrf24j40_set_txpower
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rdx
	leal	999(%rsi), %eax
	cmpl	$999, %eax                      ## imm = 0x3E7
	ja	LBB0_2
## %bb.1:
	movq	_TXPWRL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TXPWRL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	cmpl	$-191, %esi
	jle	LBB0_9
	jmp	LBB0_16
LBB0_2:
	leal	1999(%rsi), %eax
	cmpl	$999, %eax                      ## imm = 0x3E7
	ja	LBB0_4
## %bb.3:
	movq	_TXPWRL_10@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TXPWRL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	addl	$1000, %esi                     ## imm = 0x3E8
	cmpl	$-191, %esi
	jle	LBB0_9
	jmp	LBB0_16
LBB0_4:
	leal	2999(%rsi), %eax
	cmpl	$999, %eax                      ## imm = 0x3E7
	ja	LBB0_6
## %bb.5:
	movq	_TXPWRL_20@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TXPWRL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	addl	$2000, %esi                     ## imm = 0x7D0
	cmpl	$-191, %esi
	jg	LBB0_16
LBB0_9:
	cmpl	$-371, %esi                     ## imm = 0xFE8D
	jg	LBB0_13
## %bb.10:
	cmpl	$-630, %esi                     ## imm = 0xFD8A
	je	LBB0_25
## %bb.11:
	cmpl	$-490, %esi                     ## imm = 0xFE16
	jne	LBB0_28
## %bb.12:
	movq	_TXPWRS_4_9@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_13:
	cmpl	$-370, %esi                     ## imm = 0xFE8E
	je	LBB0_24
## %bb.14:
	cmpl	$-280, %esi                     ## imm = 0xFEE8
	jne	LBB0_28
## %bb.15:
	movq	_TXPWRS_2_8@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_6:
	leal	3999(%rsi), %eax
	cmpl	$999, %eax                      ## imm = 0x3E7
	ja	LBB0_28
## %bb.7:
	movq	_TXPWRL_30@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TXPWRL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	addl	$3000, %esi                     ## imm = 0xBB8
	cmpl	$-191, %esi
	jle	LBB0_9
LBB0_16:
	cmpl	$-51, %esi
	jg	LBB0_20
## %bb.17:
	cmpl	$-190, %esi
	je	LBB0_26
## %bb.18:
	cmpl	$-120, %esi
	jne	LBB0_28
## %bb.19:
	movq	_TXPWRS_1_2@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_20:
	testl	%esi, %esi
	je	LBB0_21
## %bb.22:
	cmpl	$-50, %esi
	jne	LBB0_28
## %bb.23:
	movq	_TXPWRS_0_5@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_25:
	movq	_TXPWRS_6_3@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_24:
	movq	_TXPWRS_3_7@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_26:
	movq	_TXPWRS_1_9@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_21:
	movq	_TXPWRS_0@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
	movq	_TXPWRS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edi, %eax
	movl	(%rdx), %edi
	movq	_REG_RFCON3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TXPWRL_MASK@GOTPCREL(%rip), %rcx
	movq	_TXPWRS_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%eax, %ecx
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TXPWRL_0,4,2                   ## @TXPWRL_0
	.comm	_TXPWRL_SHIFT,4,2               ## @TXPWRL_SHIFT
	.comm	_TXPWRL_10,4,2                  ## @TXPWRL_10
	.comm	_TXPWRL_20,4,2                  ## @TXPWRL_20
	.comm	_TXPWRL_30,4,2                  ## @TXPWRL_30
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TXPWRS_0,4,2                   ## @TXPWRS_0
	.comm	_TXPWRS_SHIFT,4,2               ## @TXPWRS_SHIFT
	.comm	_TXPWRS_0_5,4,2                 ## @TXPWRS_0_5
	.comm	_TXPWRS_1_2,4,2                 ## @TXPWRS_1_2
	.comm	_TXPWRS_1_9,4,2                 ## @TXPWRS_1_9
	.comm	_TXPWRS_2_8,4,2                 ## @TXPWRS_2_8
	.comm	_TXPWRS_3_7,4,2                 ## @TXPWRS_3_7
	.comm	_TXPWRS_4_9,4,2                 ## @TXPWRS_4_9
	.comm	_TXPWRS_6_3,4,2                 ## @TXPWRS_6_3
	.comm	_REG_RFCON3,4,2                 ## @REG_RFCON3
	.comm	_TXPWRL_MASK,4,2                ## @TXPWRL_MASK
	.comm	_TXPWRS_MASK,4,2                ## @TXPWRS_MASK
	.no_dead_strip	_mrf24j40_set_txpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrf24j40_set_txpower
_mrf24j40_set_txpower:                  ; @mrf24j40_set_txpower
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	add	w9, w1, #999
	cmp	w9, #999
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _TXPWRL_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TXPWRL_0@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _TXPWRL_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TXPWRL_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	cmn	w1, #191
	b.le	LBB0_6
	b	LBB0_15
LBB0_2:
	add	w9, w1, #1999
	cmp	w9, #999
	b.hi	LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, _TXPWRL_10@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TXPWRL_10@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _TXPWRL_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TXPWRL_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	add	w1, w1, #1000
	cmn	w1, #191
	b.le	LBB0_6
	b	LBB0_15
LBB0_4:
	add	w9, w1, #2999
	cmp	w9, #999
	b.hi	LBB0_13
; %bb.5:
Lloh12:
	adrp	x9, _TXPWRL_20@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TXPWRL_20@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _TXPWRL_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TXPWRL_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	add	w1, w1, #2000
	cmn	w1, #191
	b.gt	LBB0_15
LBB0_6:
	cmn	w1, #371
	b.gt	LBB0_10
; %bb.7:
	cmn	w1, #630
	b.eq	LBB0_23
; %bb.8:
	cmn	w1, #490
	b.ne	LBB0_22
; %bb.9:
Lloh18:
	adrp	x10, _TXPWRS_4_9@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TXPWRS_4_9@GOTPAGEOFF]
	b	LBB0_27
LBB0_10:
	cmn	w1, #370
	b.eq	LBB0_24
; %bb.11:
	cmn	w1, #280
	b.ne	LBB0_22
; %bb.12:
Lloh20:
	adrp	x10, _TXPWRS_2_8@GOTPAGE
Lloh21:
	ldr	x10, [x10, _TXPWRS_2_8@GOTPAGEOFF]
	b	LBB0_27
LBB0_13:
	add	w9, w1, #3999
	cmp	w9, #999
	b.hi	LBB0_22
; %bb.14:
Lloh22:
	adrp	x9, _TXPWRL_30@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TXPWRL_30@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _TXPWRL_SHIFT@GOTPAGE
Lloh26:
	ldr	x10, [x10, _TXPWRL_SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	add	w1, w1, #3000
	cmn	w1, #191
	b.le	LBB0_6
LBB0_15:
	cmn	w1, #51
	b.gt	LBB0_19
; %bb.16:
	cmn	w1, #190
	b.eq	LBB0_25
; %bb.17:
	cmn	w1, #120
	b.ne	LBB0_22
; %bb.18:
Lloh28:
	adrp	x10, _TXPWRS_1_2@GOTPAGE
Lloh29:
	ldr	x10, [x10, _TXPWRS_1_2@GOTPAGEOFF]
	b	LBB0_27
LBB0_19:
	cbz	w1, LBB0_26
; %bb.20:
	cmn	w1, #50
	b.ne	LBB0_22
; %bb.21:
Lloh30:
	adrp	x10, _TXPWRS_0_5@GOTPAGE
Lloh31:
	ldr	x10, [x10, _TXPWRS_0_5@GOTPAGEOFF]
	b	LBB0_27
LBB0_22:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_23:
Lloh35:
	adrp	x10, _TXPWRS_6_3@GOTPAGE
Lloh36:
	ldr	x10, [x10, _TXPWRS_6_3@GOTPAGEOFF]
	b	LBB0_27
LBB0_24:
Lloh37:
	adrp	x10, _TXPWRS_3_7@GOTPAGE
Lloh38:
	ldr	x10, [x10, _TXPWRS_3_7@GOTPAGEOFF]
	b	LBB0_27
LBB0_25:
Lloh39:
	adrp	x10, _TXPWRS_1_9@GOTPAGE
Lloh40:
	ldr	x10, [x10, _TXPWRS_1_9@GOTPAGEOFF]
	b	LBB0_27
LBB0_26:
Lloh41:
	adrp	x10, _TXPWRS_0@GOTPAGE
Lloh42:
	ldr	x10, [x10, _TXPWRS_0@GOTPAGEOFF]
LBB0_27:
	ldr	w10, [x10]
Lloh43:
	adrp	x11, _TXPWRS_SHIFT@GOTPAGE
Lloh44:
	ldr	x11, [x11, _TXPWRS_SHIFT@GOTPAGEOFF]
Lloh45:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	orr	w3, w10, w9
	ldr	w0, [x8]
Lloh46:
	adrp	x8, _REG_RFCON3@GOTPAGE
Lloh47:
	ldr	x8, [x8, _REG_RFCON3@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _TXPWRL_MASK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TXPWRL_MASK@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _TXPWRS_MASK@GOTPAGE
Lloh53:
	ldr	x9, [x9, _TXPWRS_MASK@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	_regmap_update_bits
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_TXPWRL_0,4,2                   ; @TXPWRL_0
	.comm	_TXPWRL_SHIFT,4,2               ; @TXPWRL_SHIFT
	.comm	_TXPWRL_10,4,2                  ; @TXPWRL_10
	.comm	_TXPWRL_20,4,2                  ; @TXPWRL_20
	.comm	_TXPWRL_30,4,2                  ; @TXPWRL_30
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TXPWRS_0,4,2                   ; @TXPWRS_0
	.comm	_TXPWRS_SHIFT,4,2               ; @TXPWRS_SHIFT
	.comm	_TXPWRS_0_5,4,2                 ; @TXPWRS_0_5
	.comm	_TXPWRS_1_2,4,2                 ; @TXPWRS_1_2
	.comm	_TXPWRS_1_9,4,2                 ; @TXPWRS_1_9
	.comm	_TXPWRS_2_8,4,2                 ; @TXPWRS_2_8
	.comm	_TXPWRS_3_7,4,2                 ; @TXPWRS_3_7
	.comm	_TXPWRS_4_9,4,2                 ; @TXPWRS_4_9
	.comm	_TXPWRS_6_3,4,2                 ; @TXPWRS_6_3
	.comm	_REG_RFCON3,4,2                 ; @REG_RFCON3
	.comm	_TXPWRL_MASK,4,2                ; @TXPWRL_MASK
	.comm	_TXPWRS_MASK,4,2                ; @TXPWRS_MASK
	.no_dead_strip	_mrf24j40_set_txpower
.subsections_via_symbols
