	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atom_op_setport
_atom_op_setport:                       ## @atom_op_setport
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	$128, %edx
	je	LBB0_6
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_7
## %bb.2:
	cmpl	$130, %edx
	jne	LBB0_13
## %bb.3:
	movl	(%r15), %edi
	callq	_U16
	movl	%eax, %ebx
	movq	_ATOM_IO_NAMES_CNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_9
## %bb.4:
	movq	_atom_io_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_SDEBUG
	testl	%ebx, %ebx
	je	LBB0_10
LBB0_5:
	movq	_ATOM_IO_IIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ebx, %eax
	jmp	LBB0_11
LBB0_6:
	movq	_ATOM_IO_SYSIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ATOM_IO_PCI@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	$1, %ecx
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_SDEBUG
	testl	%ebx, %ebx
	jne	LBB0_5
LBB0_10:
	movq	_ATOM_IO_MM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	movl	$2, %ecx
LBB0_12:
	movq	(%r14), %rdx
	movl	%eax, (%rdx)
	addl	%ecx, (%r15)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_IO_NAMES_CNT,4,2          ## @ATOM_IO_NAMES_CNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"   port: %d (%s)\n"

	.comm	_atom_io_names,8,3              ## @atom_io_names
L_.str.1:                               ## @.str.1
	.asciz	"   port: %d\n"

	.comm	_ATOM_IO_MM,4,2                 ## @ATOM_IO_MM
	.comm	_ATOM_IO_IIO,4,2                ## @ATOM_IO_IIO
	.comm	_ATOM_IO_PCI,4,2                ## @ATOM_IO_PCI
	.comm	_ATOM_IO_SYSIO,4,2              ## @ATOM_IO_SYSIO
	.no_dead_strip	_atom_op_setport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atom_op_setport
_atom_op_setport:                       ; @atom_op_setport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w2, #130
	b.ne	LBB0_11
; %bb.3:
	ldr	w0, [x19]
	bl	_U16
	mov	x21, x0
Lloh0:
	adrp	x8, _ATOM_IO_NAMES_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATOM_IO_NAMES_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _atom_io_names@GOTPAGE
Lloh4:
	ldr	x8, [x8, _atom_io_names@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, w21, sxtw #2]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _ATOM_IO_SYSIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATOM_IO_SYSIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _ATOM_IO_PCI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATOM_IO_PCI@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	mov	w9, #1
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	mov	x1, x21
	bl	_SDEBUG
Lloh14:
	adrp	x8, _ATOM_IO_IIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATOM_IO_IIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w8, w8, w21
Lloh17:
	adrp	x9, _ATOM_IO_MM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATOM_IO_MM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w8, w9, w8, eq
	mov	w9, #2
LBB0_10:
	ldr	x10, [x20]
	str	w8, [x10]
	ldr	w8, [x19]
	add	w8, w8, w9
	str	w8, [x19]
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_IO_NAMES_CNT,4,2          ; @ATOM_IO_NAMES_CNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"   port: %d (%s)\n"

	.comm	_atom_io_names,8,3              ; @atom_io_names
l_.str.1:                               ; @.str.1
	.asciz	"   port: %d\n"

	.comm	_ATOM_IO_MM,4,2                 ; @ATOM_IO_MM
	.comm	_ATOM_IO_IIO,4,2                ; @ATOM_IO_IIO
	.comm	_ATOM_IO_PCI,4,2                ; @ATOM_IO_PCI
	.comm	_ATOM_IO_SYSIO,4,2              ; @ATOM_IO_SYSIO
	.no_dead_strip	_atom_op_setport
.subsections_via_symbols
