	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p_init1
_p_init1:                               ## @p_init1
	.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_1
## %bb.4:
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	_CXD2880_IO_TGT_SYS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movq	(%rbx), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_SINGLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_9:
	movq	16(%rbx), %r14
	movl	(%r13), %r15d
	movq	_p_init1_seq@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	testl	%eax, %eax
	jne	LBB0_3
## %bb.10:
	movl	8(%rbx), %eax
	cmpl	$132, %eax
	je	LBB0_11
## %bb.12:
	cmpl	$131, %eax
	jne	LBB0_25
## %bb.13:
	movl	$22, %ecx
	jmp	LBB0_14
LBB0_7:
	movl	24(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.8:
	movq	16(%rbx), %rdi
	movl	(%r13), %esi
	movl	$16, %edx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$26, %ecx
LBB0_14:
	movq	16(%rbx), %rdi
	movl	(%r13), %esi
	movl	$16, %edx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.15:
	xorl	%r14d, %r14d
	cmpq	$0, 32(%rbx)
	setne	%r14b
	movq	16(%rbx), %rdi
	movl	(%r13), %esi
	movl	$17, %edx
	movl	%r14d, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.16:
	movq	16(%rbx), %rdi
	movl	(%r13), %esi
	movl	$19, %edx
	movl	%r14d, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.17:
	movq	16(%rbx), %rdi
	movl	(%r13), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.18:
	movq	16(%rbx), %rdi
	movl	(%r13), %esi
	movl	$18, %edx
	movl	%r14d, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.19:
	movq	16(%rbx), %rdi
	movl	(%r13), %esi
	xorl	%edx, %edx
	movl	$16, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.20:
	movl	8(%rbx), %eax
	cmpl	$132, %eax
	je	LBB0_21
## %bb.22:
	cmpl	$131, %eax
	jne	LBB0_25
## %bb.23:
	xorl	%ecx, %ecx
	jmp	LBB0_24
LBB0_25:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_21:
	movl	$1, %ecx
LBB0_24:
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	movl	(%r13), %esi
	movl	$105, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_IO_TGT_SYS,4,2         ## @CXD2880_IO_TGT_SYS
	.comm	_CXD2880_TNRDMD_DIVERMODE_SINGLE,8,3 ## @CXD2880_TNRDMD_DIVERMODE_SINGLE
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ## @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_p_init1_seq,4,2                ## @p_init1_seq
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.no_dead_strip	_p_init1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p_init1
_p_init1:                               ; @p_init1
	.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_9
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _CXD2880_IO_TGT_SYS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CXD2880_IO_TGT_SYS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	mov	w3, #0
	blr	x8
	cbnz	w0, LBB0_11
; %bb.2:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _CXD2880_TNRDMD_DIVERMODE_SINGLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CXD2880_TNRDMD_DIVERMODE_SINGLE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x19, #24]
	sub	w3, w8, #128
	cmp	w3, #3
	b.hs	LBB0_9
; %bb.4:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w1, [x23]
	mov	w2, #16
	blr	x8
	cbnz	w0, LBB0_11
LBB0_5:
	ldr	x20, [x19, #16]
	ldr	w21, [x23]
Lloh8:
	adrp	x8, _p_init1_seq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _p_init1_seq@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	w8, [x19, #8]
	cmp	w8, #132
	b.eq	LBB0_12
; %bb.7:
	cmp	w8, #131
	b.ne	LBB0_22
; %bb.8:
	mov	w3, #22
	b	LBB0_13
LBB0_9:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w3, #26
LBB0_13:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w1, [x23]
	mov	w2, #16
	blr	x8
	cbnz	w0, LBB0_11
; %bb.14:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w20, ne
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w1, [x23]
	mov	w2, #17
	mov	x3, x20
	blr	x8
	cbnz	w0, LBB0_11
; %bb.15:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w1, [x23]
	mov	w2, #19
	mov	x3, x20
	blr	x8
	cbnz	w0, LBB0_11
; %bb.16:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w1, [x23]
	mov	w2, #0
	mov	w3, #0
	blr	x8
	cbnz	w0, LBB0_11
; %bb.17:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w1, [x23]
	mov	w2, #18
	mov	x3, x20
	blr	x8
	cbnz	w0, LBB0_11
; %bb.18:
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	w1, [x23]
	mov	w2, #0
	mov	w3, #16
	blr	x8
	cbnz	w0, LBB0_11
; %bb.19:
	ldr	w8, [x19, #8]
	cmp	w8, #132
	b.eq	LBB0_23
; %bb.20:
	cmp	w8, #131
	b.ne	LBB0_22
; %bb.21:
	mov	w3, #0
	b	LBB0_24
LBB0_22:
Lloh13:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_10
LBB0_23:
	mov	w3, #1
LBB0_24:
	ldr	x0, [x19, #16]
	ldr	x4, [x0]
	ldr	w1, [x23]
	mov	w2, #105
	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
	br	x4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_IO_TGT_SYS,4,2         ; @CXD2880_IO_TGT_SYS
	.comm	_CXD2880_TNRDMD_DIVERMODE_SINGLE,8,3 ; @CXD2880_TNRDMD_DIVERMODE_SINGLE
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ; @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_p_init1_seq,4,2                ; @p_init1_seq
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.no_dead_strip	_p_init1
.subsections_via_symbols
