	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drxj_set_lna_state
_drxj_set_lna_state:                    ## @drxj_set_lna_state
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_DRX_UIO1@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)
	movq	_DRX_UIO_MODE_READWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	callq	_ctrl_set_uio_cfg
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_5
LBB0_2:
	movq	(%r12), %rax
	movq	%rax, -40(%rbp)
	movl	%r14d, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ctrl_uio_write
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
	testl	%r14d, %r14d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRX_UIO1,8,3                   ## @DRX_UIO1
	.comm	_DRX_UIO_MODE_READWRITE,4,2     ## @DRX_UIO_MODE_READWRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to setup LNA GPIO!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to %sable LNA!\n"

L_.str.2:                               ## @.str.2
	.asciz	"en"

L_.str.3:                               ## @.str.3
	.asciz	"dis"

	.no_dead_strip	_drxj_set_lna_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drxj_set_lna_state
_drxj_set_lna_state:                    ; @drxj_set_lna_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _DRX_UIO1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DRX_UIO1@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [sp, #40]
Lloh2:
	adrp	x8, _DRX_UIO_MODE_READWRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRX_UIO_MODE_READWRITE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x1, sp, #32
	bl	_ctrl_set_uio_cfg
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x8, [x22]
	str	x8, [sp, #24]
	str	w19, [sp, #16]
	add	x1, sp, #16
	mov	x0, x21
	bl	_ctrl_uio_write
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, l_.str.2@PAGE
Lloh8:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh9:
	adrp	x9, l_.str.3@PAGE
Lloh10:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w19, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_pr_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DRX_UIO1,8,3                   ; @DRX_UIO1
	.comm	_DRX_UIO_MODE_READWRITE,4,2     ; @DRX_UIO_MODE_READWRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to setup LNA GPIO!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to %sable LNA!\n"

l_.str.2:                               ; @.str.2
	.asciz	"en"

l_.str.3:                               ; @.str.3
	.asciz	"dis"

	.no_dead_strip	_drxj_set_lna_state
.subsections_via_symbols
