	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rsi)
	jle	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	movq	8(%rsi), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	$15, %ecx
	cmpl	$8, %ecx
	jne	LBB0_6
## %bb.2:
	movq	%rdi, %r12
	movl	%eax, (%rdi)
	movl	$768, 4(%rdi)                   ## imm = 0x300
	movq	%rdi, %rsi
	callq	_pcmcia_request_io
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	$784, %ebx                      ## imm = 0x310
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-16(%rbx), %eax
	cmpl	$1007, %eax                     ## imm = 0x3EF
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	%ebx, 4(%r12)
	movq	%r12, %rdi
	movq	%r12, %rsi
	callq	_pcmcia_request_io
	addl	$16, %ebx
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_xirc2ps_config_modem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xirc2ps_config_modem
_xirc2ps_config_modem:                  ; @xirc2ps_config_modem
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #8]
	ldr	w8, [x8]
	and	w9, w8, #0xf
	cmp	w9, #8
	b.ne	LBB0_6
; %bb.2:
	mov	x20, x0
	mov	w9, #768
	stp	w8, w9, [x0]
	mov	x1, x0
	bl	_pcmcia_request_io
	cbz	w0, LBB0_7
; %bb.3:
	mov	w21, #784
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #16
	cmp	w8, #1007
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	stp	w8, w21, [x20]
	mov	x0, x20
	mov	x1, x20
	bl	_pcmcia_request_io
	add	w21, w21, #16
	cbnz	w0, LBB0_4
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_xirc2ps_config_modem
.subsections_via_symbols
