	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xirc2ps_config_modem
_xirc2ps_config_modem:                  ## @xirc2ps_config_modem
	.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	8(%rdi), %rdx
	movq	(%rdx), %rax
	movl	(%rax), %ecx
	movl	%ecx, %esi
	andl	$15, %esi
	cmpl	$8, %esi
	jne	LBB0_1
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_1:
	movq	%rdi, %r15
	movl	$16, 4(%rax)
	movq	8(%rdx), %rdx
	movl	$8, 4(%rdx)
	movq	_IO_DATA_PATH_WIDTH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	notl	%esi
	movl	8(%rax), %edi
	andl	%esi, %edi
	movq	_IO_DATA_PATH_WIDTH_16@GOTPCREL(%rip), %rbx
	orl	(%rbx), %edi
	movl	%edi, 8(%rax)
	andl	8(%rdx), %esi
	movq	_IO_DATA_PATH_WIDTH_8@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movl	%esi, 8(%rdx)
	movl	$10, (%r15)
	movl	%ecx, (%rdx)
	movl	$768, (%rax)                    ## imm = 0x300
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_18
## %bb.2:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$784, (%rax)                    ## imm = 0x310
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.3:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$800, (%rax)                    ## imm = 0x320
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$816, (%rax)                    ## imm = 0x330
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.5:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$832, (%rax)                    ## imm = 0x340
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.6:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$848, (%rax)                    ## imm = 0x350
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$864, (%rax)                    ## imm = 0x360
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.8:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$880, (%rax)                    ## imm = 0x370
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$896, (%rax)                    ## imm = 0x380
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.10:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$912, (%rax)                    ## imm = 0x390
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.11:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$928, (%rax)                    ## imm = 0x3A0
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$944, (%rax)                    ## imm = 0x3B0
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$960, (%rax)                    ## imm = 0x3C0
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$976, (%rax)                    ## imm = 0x3D0
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$992, (%rax)                    ## imm = 0x3E0
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	$1008, (%rax)                   ## imm = 0x3F0
	movq	%r15, %rdi
	callq	_pcmcia_request_io
	testl	%eax, %eax
	jne	LBB0_17
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IO_DATA_PATH_WIDTH,4,2         ## @IO_DATA_PATH_WIDTH
	.comm	_IO_DATA_PATH_WIDTH_16,4,2      ## @IO_DATA_PATH_WIDTH_16
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ## @IO_DATA_PATH_WIDTH_8
	.no_dead_strip	_xirc2ps_config_modem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function xirc2ps_config_modem
lCPI0_0:
	.long	768                             ; 0x300
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_xirc2ps_config_modem:                  ; @xirc2ps_config_modem
	.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
	ldr	x10, [x0, #8]
	ldr	x8, [x10]
	ldr	w9, [x8]
	and	w11, w9, #0xf
	cmp	w11, #8
	b.ne	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x11, _IO_DATA_PATH_WIDTH@GOTPAGE
Lloh4:
	ldr	x11, [x11, _IO_DATA_PATH_WIDTH@GOTPAGEOFF]
	ldr	x10, [x10, #8]
Lloh5:
	ldr	w11, [x11]
	ldr	w12, [x8, #8]
	bic	w12, w12, w11
Lloh6:
	adrp	x13, _IO_DATA_PATH_WIDTH_16@GOTPAGE
Lloh7:
	ldr	x13, [x13, _IO_DATA_PATH_WIDTH_16@GOTPAGEOFF]
Lloh8:
	ldr	w13, [x13]
	orr	w12, w13, w12
	str	w12, [x8, #8]
	ldr	w12, [x10, #8]
Lloh9:
	adrp	x13, _IO_DATA_PATH_WIDTH_8@GOTPAGE
Lloh10:
	ldr	x13, [x13, _IO_DATA_PATH_WIDTH_8@GOTPAGEOFF]
	bic	w11, w12, w11
Lloh11:
	ldr	w12, [x13]
	orr	w11, w12, w11
	str	w11, [x10, #8]
	mov	w11, #10
	str	w11, [x0]
	str	w9, [x10]
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	mov	w8, #8
	str	w8, [x10, #4]
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #784
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #800
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #816
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #832
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #848
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #864
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #880
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #896
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #912
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.12:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #928
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #944
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.14:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #960
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.15:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #976
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.16:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #992
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbz	w0, LBB0_18
; %bb.17:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #1008
	str	w9, [x8]
	mov	x0, x19
	bl	_pcmcia_request_io
	cbnz	w0, LBB0_1
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IO_DATA_PATH_WIDTH,4,2         ; @IO_DATA_PATH_WIDTH
	.comm	_IO_DATA_PATH_WIDTH_16,4,2      ; @IO_DATA_PATH_WIDTH_16
	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ; @IO_DATA_PATH_WIDTH_8
	.no_dead_strip	_xirc2ps_config_modem
.subsections_via_symbols
