	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_probe_config
_smsc911x_probe_config:                 ## @smsc911x_probe_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, -20(%rbp)
	movq	%rsi, %rdi
	callq	_device_get_phy_mode
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_PHY_INTERFACE_MODE_NA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movl	%eax, (%r14)
	movl	20(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_device_get_mac_address
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_device_property_read_u32
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_16
## %bb.3:
	movl	-20(%rbp), %ecx
	xorl	$4, %ecx
	orl	%ecx, %eax
	jne	LBB0_4
## %bb.5:
	movq	_SMSC911X_USE_32BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_SMSC911X_USE_16BIT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	leaq	4(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_property_read_u32
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_property_present
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_SMSC911X_IRQ_POLARITY_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_property_present
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_SMSC911X_IRQ_TYPE_PUSH_PULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_property_present
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_SMSC911X_FORCE_INTERNAL_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_property_present
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_SMSC911X_FORCE_EXTERNAL_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_14:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_property_present
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.15:
	movq	_SMSC911X_SAVE_MAC_ADDRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%r14)
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_NA,4,2      ## @PHY_INTERFACE_MODE_NA
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg-io-width"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SMSC911X_USE_32BIT,4,2         ## @SMSC911X_USE_32BIT
	.comm	_SMSC911X_USE_16BIT,4,2         ## @SMSC911X_USE_16BIT
L_.str.1:                               ## @.str.1
	.asciz	"reg-shift"

L_.str.2:                               ## @.str.2
	.asciz	"smsc,irq-active-high"

	.comm	_SMSC911X_IRQ_POLARITY_ACTIVE_HIGH,4,2 ## @SMSC911X_IRQ_POLARITY_ACTIVE_HIGH
L_.str.3:                               ## @.str.3
	.asciz	"smsc,irq-push-pull"

	.comm	_SMSC911X_IRQ_TYPE_PUSH_PULL,4,2 ## @SMSC911X_IRQ_TYPE_PUSH_PULL
L_.str.4:                               ## @.str.4
	.asciz	"smsc,force-internal-phy"

	.comm	_SMSC911X_FORCE_INTERNAL_PHY,4,2 ## @SMSC911X_FORCE_INTERNAL_PHY
L_.str.5:                               ## @.str.5
	.asciz	"smsc,force-external-phy"

	.comm	_SMSC911X_FORCE_EXTERNAL_PHY,4,2 ## @SMSC911X_FORCE_EXTERNAL_PHY
L_.str.6:                               ## @.str.6
	.asciz	"smsc,save-mac-address"

	.comm	_SMSC911X_SAVE_MAC_ADDRESS,4,2  ## @SMSC911X_SAVE_MAC_ADDRESS
	.no_dead_strip	_smsc911x_probe_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_probe_config
_smsc911x_probe_config:                 ; @smsc911x_probe_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	mov	x0, x1
	bl	_device_get_phy_mode
Lloh0:
	adrp	x8, _PHY_INTERFACE_MODE_NA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_NA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, w8, w0, lt
	str	w8, [x19]
	ldr	w1, [x19, #20]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_device_get_mac_address
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_device_property_read_u32
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_11
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #4
	ccmp	w0, #0, #0, eq
Lloh11:
	adrp	x8, _SMSC911X_USE_32BIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SMSC911X_USE_32BIT@GOTPAGEOFF]
Lloh13:
	adrp	x9, _SMSC911X_USE_16BIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SMSC911X_USE_16BIT@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	add	x2, x19, #4
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_device_property_read_u32
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_device_property_present
	cbz	x0, LBB0_3
; %bb.2:
Lloh19:
	adrp	x8, _SMSC911X_IRQ_POLARITY_ACTIVE_HIGH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SMSC911X_IRQ_POLARITY_ACTIVE_HIGH@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_3:
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_device_property_present
	cbz	x0, LBB0_5
; %bb.4:
Lloh24:
	adrp	x8, _SMSC911X_IRQ_TYPE_PUSH_PULL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMSC911X_IRQ_TYPE_PUSH_PULL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_5:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_device_property_present
	cbz	x0, LBB0_7
; %bb.6:
Lloh29:
	adrp	x8, _SMSC911X_FORCE_INTERNAL_PHY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SMSC911X_FORCE_INTERNAL_PHY@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_7:
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_device_property_present
	cbz	x0, LBB0_9
; %bb.8:
Lloh34:
	adrp	x8, _SMSC911X_FORCE_EXTERNAL_PHY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SMSC911X_FORCE_EXTERNAL_PHY@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_9:
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_device_property_present
	cbz	x0, LBB0_11
; %bb.10:
	mov	w0, #0
Lloh39:
	adrp	x8, _SMSC911X_SAVE_MAC_ADDRESS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SMSC911X_SAVE_MAC_ADDRESS@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_NA,4,2      ; @PHY_INTERFACE_MODE_NA
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg-io-width"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SMSC911X_USE_32BIT,4,2         ; @SMSC911X_USE_32BIT
	.comm	_SMSC911X_USE_16BIT,4,2         ; @SMSC911X_USE_16BIT
l_.str.1:                               ; @.str.1
	.asciz	"reg-shift"

l_.str.2:                               ; @.str.2
	.asciz	"smsc,irq-active-high"

	.comm	_SMSC911X_IRQ_POLARITY_ACTIVE_HIGH,4,2 ; @SMSC911X_IRQ_POLARITY_ACTIVE_HIGH
l_.str.3:                               ; @.str.3
	.asciz	"smsc,irq-push-pull"

	.comm	_SMSC911X_IRQ_TYPE_PUSH_PULL,4,2 ; @SMSC911X_IRQ_TYPE_PUSH_PULL
l_.str.4:                               ; @.str.4
	.asciz	"smsc,force-internal-phy"

	.comm	_SMSC911X_FORCE_INTERNAL_PHY,4,2 ; @SMSC911X_FORCE_INTERNAL_PHY
l_.str.5:                               ; @.str.5
	.asciz	"smsc,force-external-phy"

	.comm	_SMSC911X_FORCE_EXTERNAL_PHY,4,2 ; @SMSC911X_FORCE_EXTERNAL_PHY
l_.str.6:                               ; @.str.6
	.asciz	"smsc,save-mac-address"

	.comm	_SMSC911X_SAVE_MAC_ADDRESS,4,2  ; @SMSC911X_SAVE_MAC_ADDRESS
	.no_dead_strip	_smsc911x_probe_config
.subsections_via_symbols
