	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcs7830_bind
_mcs7830_bind:                          ## @mcs7830_bind
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	48(%rdi), %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	%r12, %rdi
	callq	_mcs7830_hif_get_mac_address
	movl	%eax, %r13d
	cmpl	$3, %ebx
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	testl	%r13d, %r13d
	jne	LBB0_2
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	movq	40(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_7
LBB0_6:
	movq	%r15, %rdi
	callq	_mcs7830_data_set_multicast
	movq	%r12, %rdi
	callq	_mcs7830_apply_base_config
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_mcs7830_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_mcs7830_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	%rax, 32(%r12)
	movq	_mcs7830_mdio_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_mcs7830_mdio_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r15, 16(%r12)
	movabsq	$133143986239, %rax             ## imm = 0x1F0000003F
	movq	%rax, (%r12)
	movq	(%r15), %rax
	movl	4(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usbnet_get_endpoints           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot read MAC address\n"

	.comm	_mcs7830_ethtool_ops,4,2        ## @mcs7830_ethtool_ops
	.comm	_mcs7830_netdev_ops,4,2         ## @mcs7830_netdev_ops
	.comm	_ETH_FRAME_LEN,8,3              ## @ETH_FRAME_LEN
	.comm	_mcs7830_mdio_read,4,2          ## @mcs7830_mdio_read
	.comm	_mcs7830_mdio_write,4,2         ## @mcs7830_mdio_write
	.no_dead_strip	_mcs7830_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mcs7830_bind
lCPI0_0:
	.long	63                              ; 0x3f
	.long	31                              ; 0x1f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mcs7830_bind:                          ; @mcs7830_bind
	.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, x1
	mov	x20, x0
	ldr	x21, [x0, #48]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_mcs7830_hif_get_mac_address
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_mcs7830_hif_get_mac_address
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_mcs7830_hif_get_mac_address
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_8
; %bb.4:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_mcs7830_hif_get_mac_address
	cmp	w0, #0
	cset	w8, ne
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x1, [x21]
	mov	x0, x20
	bl	_mcs7830_hif_get_mac_address
	mov	x22, x0
	cmp	w0, #0
	cset	w8, ne
	cbnz	w8, LBB0_9
LBB0_6:
	mov	x0, x21
	bl	_mcs7830_data_set_multicast
	mov	x0, x20
	bl	_mcs7830_apply_base_config
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.7:
Lloh3:
	adrp	x8, _mcs7830_ethtool_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mcs7830_ethtool_ops@GOTPAGEOFF]
Lloh5:
	adrp	x9, _mcs7830_netdev_ops@GOTPAGE
Lloh6:
	ldr	x9, [x9, _mcs7830_netdev_ops@GOTPAGEOFF]
	stp	x9, x8, [x21, #8]
Lloh7:
	adrp	x8, _ETH_FRAME_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETH_FRAME_LEN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	add	x8, x8, #1
	str	x8, [x20, #32]
Lloh10:
	adrp	x8, _mcs7830_mdio_read@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mcs7830_mdio_read@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _mcs7830_mdio_write@GOTPAGE
Lloh14:
	ldr	x9, [x9, _mcs7830_mdio_write@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	str	x21, [x20, #16]
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
	ldr	x8, [x21]
	ldr	w8, [x8, #4]
	str	w8, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	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
	b	_usbnet_get_endpoints
LBB0_8:
	mov	x22, x0
	cbz	w8, LBB0_6
LBB0_9:
	ldr	x0, [x20, #40]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_10:
	mov	x0, x22
	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
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot read MAC address\n"

	.comm	_mcs7830_ethtool_ops,4,2        ; @mcs7830_ethtool_ops
	.comm	_mcs7830_netdev_ops,4,2         ; @mcs7830_netdev_ops
	.comm	_ETH_FRAME_LEN,8,3              ; @ETH_FRAME_LEN
	.comm	_mcs7830_mdio_read,4,2          ; @mcs7830_mdio_read
	.comm	_mcs7830_mdio_write,4,2         ; @mcs7830_mdio_write
	.no_dead_strip	_mcs7830_bind
.subsections_via_symbols
