	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc_request_datacs
_smc_request_datacs:                    ## @smc_request_datacs
	.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
	movq	_SMC_CAN_USE_DATACS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_platform_get_resource_byname
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_netdev_priv
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %edi
	movq	_SMC_DATA_EXTENT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_CARDNAME@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_request_mem_region
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	(%rbx), %edi
	movl	(%r12), %esi
	callq	_ioremap
	movl	%eax, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_info                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SMC_CAN_USE_DATACS,8,3         ## @SMC_CAN_USE_DATACS
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smc91x-data32"

	.comm	_SMC_DATA_EXTENT,4,2            ## @SMC_DATA_EXTENT
	.comm	_CARDNAME,4,2                   ## @CARDNAME
L_.str.1:                               ## @.str.1
	.asciz	"%s: failed to request datacs memory region.\n"

	.no_dead_strip	_smc_request_datacs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc_request_datacs
_smc_request_datacs:                    ; @smc_request_datacs
	.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
Lloh0:
	adrp	x8, _SMC_CAN_USE_DATACS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMC_CAN_USE_DATACS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x1
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_platform_get_resource_byname
	mov	x21, x0
	mov	x0, x19
	bl	_netdev_priv
	cbz	x21, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w0, [x21]
Lloh8:
	adrp	x22, _SMC_DATA_EXTENT@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SMC_DATA_EXTENT@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh10:
	adrp	x23, _CARDNAME@GOTPAGE
Lloh11:
	ldr	x23, [x23, _CARDNAME@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_request_mem_region
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_ioremap
	str	w0, [x20]
LBB0_4:
	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_5:
	ldr	w2, [x23]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	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
	b	_netdev_info
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SMC_CAN_USE_DATACS,8,3         ; @SMC_CAN_USE_DATACS
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smc91x-data32"

	.comm	_SMC_DATA_EXTENT,4,2            ; @SMC_DATA_EXTENT
	.comm	_CARDNAME,4,2                   ; @CARDNAME
l_.str.1:                               ; @.str.1
	.asciz	"%s: failed to request datacs memory region.\n"

	.no_dead_strip	_smc_request_datacs
.subsections_via_symbols
