	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_set_uio_cfg
_ctrl_set_uio_cfg:                      ## @ctrl_set_uio_cfg
	.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	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movl	(%rdi), %edi
	movq	_SIO_TOP_COMM_KEY__A@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SIO_TOP_COMM_KEY_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_35
LBB0_6:
	movl	$-133, %eax
	addl	(%r15), %eax
	cmpl	$3, %eax
	ja	LBB0_2
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_26:
	cmpl	$0, 4(%r13)
	je	LBB0_9
## %bb.27:
	movl	4(%r15), %eax
	cmpl	$132, %eax
	je	LBB0_30
## %bb.28:
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.29:
	movl	$128, (%r13)
	jmp	LBB0_33
LBB0_20:
	cmpl	$0, 12(%r13)
	je	LBB0_9
## %bb.21:
	movl	4(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_24
## %bb.22:
	cmpl	$132, %eax
	je	LBB0_25
## %bb.23:
	cmpl	$131, %eax
	jne	LBB0_2
LBB0_24:
	movl	%eax, 8(%r13)
	jmp	LBB0_33
LBB0_14:
	cmpl	$0, 20(%r13)
	je	LBB0_9
## %bb.15:
	movl	4(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_18
## %bb.16:
	cmpl	$132, %eax
	je	LBB0_19
## %bb.17:
	cmpl	$131, %eax
	jne	LBB0_2
LBB0_18:
	movl	%eax, 16(%r13)
	jmp	LBB0_33
LBB0_8:
	cmpl	$0, 28(%r13)
	je	LBB0_9
## %bb.10:
	movl	4(%r15), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_11
## %bb.32:
	movl	%eax, 24(%r13)
	jmp	LBB0_33
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	cmpl	$132, %eax
	jne	LBB0_2
## %bb.12:
	movl	$132, 24(%r13)
	movl	(%r14), %edi
	movq	_SIO_PDR_SMA_TX_CFG__A@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_35:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movl	(%r14), %edi
	movq	_SIO_PDR_IRQN_CFG__A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_5
## %bb.31:
	movl	4(%r15), %eax
	movl	%eax, (%r13)
	jmp	LBB0_33
LBB0_19:
	movl	$132, 16(%r13)
	movl	(%r14), %edi
	movq	_SIO_PDR_SMA_RX_CFG__A@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_25:
	movl	$132, 8(%r13)
	movl	(%r14), %edi
	movq	_SIO_PDR_GPIO_CFG__A@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	jne	LBB0_5
LBB0_33:
	movl	(%r14), %edi
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_drxj_dap_write_reg16
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	%r14d, %ebx
	jmp	LBB0_35
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_26
	.long	L0_0_set_20
	.long	L0_0_set_14
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SIO_TOP_COMM_KEY__A,4,2        ## @SIO_TOP_COMM_KEY__A
	.comm	_SIO_TOP_COMM_KEY_KEY,4,2       ## @SIO_TOP_COMM_KEY_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_SIO_PDR_SMA_TX_CFG__A,4,2      ## @SIO_PDR_SMA_TX_CFG__A
	.comm	_SIO_PDR_SMA_RX_CFG__A,4,2      ## @SIO_PDR_SMA_RX_CFG__A
	.comm	_SIO_PDR_GPIO_CFG__A,4,2        ## @SIO_PDR_GPIO_CFG__A
	.comm	_SIO_PDR_IRQN_CFG__A,4,2        ## @SIO_PDR_IRQN_CFG__A
	.no_dead_strip	_ctrl_set_uio_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_set_uio_cfg
_ctrl_set_uio_cfg:                      ; @ctrl_set_uio_cfg
	.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
	cbz	x0, LBB0_27
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_27
; %bb.2:
	mov	x19, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x22, _SIO_TOP_COMM_KEY__A@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SIO_TOP_COMM_KEY__A@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _SIO_TOP_COMM_KEY_KEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIO_TOP_COMM_KEY_KEY@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbz	w0, LBB0_5
LBB0_3:
	mov	x20, x0
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	b	LBB0_29
LBB0_5:
	ldr	w8, [x21]
	sub	w8, w8, #133
	cmp	w8, #3
	b.hi	LBB0_27
; %bb.6:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_24
; %bb.8:
	ldr	w8, [x21, #4]
	cmp	w8, #132
	b.eq	LBB0_30
; %bb.9:
	cmp	w8, #128
	b.ne	LBB0_27
; %bb.10:
	str	w8, [x23]
	b	LBB0_35
LBB0_11:
	ldr	w8, [x23, #12]
	cbz	w8, LBB0_24
; %bb.12:
	ldr	w8, [x21, #4]
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.13:
	cmp	w8, #132
	b.eq	LBB0_33
; %bb.14:
	cmp	w8, #131
	b.ne	LBB0_27
LBB0_15:
	str	w8, [x23, #8]
	b	LBB0_35
LBB0_16:
	ldr	w8, [x23, #20]
	cbz	w8, LBB0_24
; %bb.17:
	ldr	w8, [x21, #4]
	cmp	w8, #128
	b.eq	LBB0_20
; %bb.18:
	cmp	w8, #132
	b.eq	LBB0_32
; %bb.19:
	cmp	w8, #131
	b.ne	LBB0_27
LBB0_20:
	str	w8, [x23, #16]
	b	LBB0_35
LBB0_21:
	ldr	w8, [x23, #28]
	cbz	w8, LBB0_24
; %bb.22:
	ldr	w8, [x21, #4]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_25
; %bb.23:
	str	w8, [x23, #24]
	b	LBB0_35
LBB0_24:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_28
LBB0_25:
	cmp	w8, #132
	b.ne	LBB0_27
; %bb.26:
	str	w8, [x23, #24]
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _SIO_PDR_SMA_TX_CFG__A@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIO_PDR_SMA_TX_CFG__A@GOTPAGEOFF]
	b	LBB0_34
LBB0_27:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_28:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_29:
	mov	x0, x20
	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
LBB0_30:
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _SIO_PDR_IRQN_CFG__A@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIO_PDR_IRQN_CFG__A@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbnz	w0, LBB0_3
; %bb.31:
	ldr	w8, [x21, #4]
	str	w8, [x23]
	b	LBB0_35
LBB0_32:
	str	w8, [x23, #16]
	ldr	w0, [x19]
Lloh18:
	adrp	x8, _SIO_PDR_SMA_RX_CFG__A@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIO_PDR_SMA_RX_CFG__A@GOTPAGEOFF]
	b	LBB0_34
LBB0_33:
	str	w8, [x23, #8]
	ldr	w0, [x19]
Lloh20:
	adrp	x8, _SIO_PDR_GPIO_CFG__A@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIO_PDR_GPIO_CFG__A@GOTPAGEOFF]
LBB0_34:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	cbnz	w0, LBB0_3
LBB0_35:
	ldr	w0, [x19]
	ldr	w1, [x22]
	mov	w2, #0
	mov	w3, #0
	bl	_drxj_dap_write_reg16
	mov	x20, x0
	cbnz	w0, LBB0_4
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_21-LBB0_7)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SIO_TOP_COMM_KEY__A,4,2        ; @SIO_TOP_COMM_KEY__A
	.comm	_SIO_TOP_COMM_KEY_KEY,4,2       ; @SIO_TOP_COMM_KEY_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_SIO_PDR_SMA_TX_CFG__A,4,2      ; @SIO_PDR_SMA_TX_CFG__A
	.comm	_SIO_PDR_SMA_RX_CFG__A,4,2      ; @SIO_PDR_SMA_RX_CFG__A
	.comm	_SIO_PDR_GPIO_CFG__A,4,2        ; @SIO_PDR_GPIO_CFG__A
	.comm	_SIO_PDR_IRQN_CFG__A,4,2        ; @SIO_PDR_IRQN_CFG__A
	.no_dead_strip	_ctrl_set_uio_cfg
.subsections_via_symbols
