	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt77252_dev_open
_idt77252_dev_open:                     ## @idt77252_dev_open
	.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	%rdi, %r14
	movq	_IDT77252_BIT_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_SAR_CFG_RXPTH@GOTPCREL(%rip), %rax
	movq	_SAR_RX_DELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_SAR_CFG_RAWIE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAR_CFG_RQFIE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAR_CFG_TMOIE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAR_CFG_FBIE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAR_CFG_TXEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAR_CFG_TXINT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAR_CFG_TXUIE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAR_CFG_TXSFI@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAR_CFG_PHYIE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAR_REG_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_readl
	orl	%eax, %ebx
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_writel
	movq	%r14, %rdi
	callq	_open_card_oam
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_open_card_ubr0
	movl	(%r14), %esi
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	callq	_printk
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	callq	_IPRINTK
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IDT77252_BIT_INIT,4,2          ## @IDT77252_BIT_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: SAR not yet initialized.\n"

	.comm	_SAR_CFG_RXPTH,4,2              ## @SAR_CFG_RXPTH
	.comm	_SAR_RX_DELAY,4,2               ## @SAR_RX_DELAY
	.comm	_SAR_CFG_RAWIE,4,2              ## @SAR_CFG_RAWIE
	.comm	_SAR_CFG_RQFIE,4,2              ## @SAR_CFG_RQFIE
	.comm	_SAR_CFG_TMOIE,4,2              ## @SAR_CFG_TMOIE
	.comm	_SAR_CFG_FBIE,4,2               ## @SAR_CFG_FBIE
	.comm	_SAR_CFG_TXEN,4,2               ## @SAR_CFG_TXEN
	.comm	_SAR_CFG_TXINT,4,2              ## @SAR_CFG_TXINT
	.comm	_SAR_CFG_TXUIE,4,2              ## @SAR_CFG_TXUIE
	.comm	_SAR_CFG_TXSFI,4,2              ## @SAR_CFG_TXSFI
	.comm	_SAR_CFG_PHYIE,4,2              ## @SAR_CFG_PHYIE
	.comm	_SAR_REG_CFG,4,2                ## @SAR_REG_CFG
L_.str.1:                               ## @.str.1
	.asciz	"%s: Error initializing OAM.\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: Error initializing UBR0.\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: opened IDT77252 ABR SAR.\n"

	.comm	_SAR_CFG_VPECA,4,2              ## @SAR_CFG_VPECA
	.no_dead_strip	_idt77252_dev_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt77252_dev_open
_idt77252_dev_open:                     ; @idt77252_dev_open
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _IDT77252_BIT_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDT77252_BIT_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _SAR_CFG_RXPTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAR_CFG_RXPTH@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SAR_RX_DELAY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SAR_RX_DELAY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _SAR_CFG_RAWIE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SAR_CFG_RAWIE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _SAR_CFG_RQFIE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SAR_CFG_RQFIE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _SAR_CFG_TMOIE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SAR_CFG_TMOIE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh17:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _SAR_CFG_FBIE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SAR_CFG_FBIE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _SAR_CFG_TXEN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SAR_CFG_TXEN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _SAR_CFG_TXINT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SAR_CFG_TXINT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh26:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _SAR_CFG_TXUIE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SAR_CFG_TXUIE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _SAR_CFG_TXSFI@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SAR_CFG_TXSFI@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _SAR_CFG_PHYIE@GOTPAGE
Lloh34:
	ldr	x10, [x10, _SAR_CFG_PHYIE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh35:
	ldr	w9, [x10]
	orr	w20, w8, w9
Lloh36:
	adrp	x21, _SAR_REG_CFG@GOTPAGE
Lloh37:
	ldr	x21, [x21, _SAR_REG_CFG@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_readl
	orr	w0, w20, w0
	ldr	w1, [x21]
	bl	_writel
	mov	x0, x19
	bl	_open_card_oam
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w1, [x19]
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	ldr	w1, [x19]
Lloh40:
	adrp	x0, l_.str@PAGE
Lloh41:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_open_card_ubr0
	ldr	w1, [x19]
	cbz	x0, LBB0_8
; %bb.5:
Lloh42:
	adrp	x0, l_.str.2@PAGE
Lloh43:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_printk
	mov	w0, #-1
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
LBB0_8:
Lloh44:
	adrp	x0, l_.str.3@PAGE
Lloh45:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IPRINTK
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_IDT77252_BIT_INIT,4,2          ; @IDT77252_BIT_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: SAR not yet initialized.\n"

	.comm	_SAR_CFG_RXPTH,4,2              ; @SAR_CFG_RXPTH
	.comm	_SAR_RX_DELAY,4,2               ; @SAR_RX_DELAY
	.comm	_SAR_CFG_RAWIE,4,2              ; @SAR_CFG_RAWIE
	.comm	_SAR_CFG_RQFIE,4,2              ; @SAR_CFG_RQFIE
	.comm	_SAR_CFG_TMOIE,4,2              ; @SAR_CFG_TMOIE
	.comm	_SAR_CFG_FBIE,4,2               ; @SAR_CFG_FBIE
	.comm	_SAR_CFG_TXEN,4,2               ; @SAR_CFG_TXEN
	.comm	_SAR_CFG_TXINT,4,2              ; @SAR_CFG_TXINT
	.comm	_SAR_CFG_TXUIE,4,2              ; @SAR_CFG_TXUIE
	.comm	_SAR_CFG_TXSFI,4,2              ; @SAR_CFG_TXSFI
	.comm	_SAR_CFG_PHYIE,4,2              ; @SAR_CFG_PHYIE
	.comm	_SAR_REG_CFG,4,2                ; @SAR_REG_CFG
l_.str.1:                               ; @.str.1
	.asciz	"%s: Error initializing OAM.\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: Error initializing UBR0.\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: opened IDT77252 ABR SAR.\n"

	.comm	_SAR_CFG_VPECA,4,2              ; @SAR_CFG_VPECA
	.no_dead_strip	_idt77252_dev_open
.subsections_via_symbols
